其他
其他
chaoyuzhang
这个作者很懒,什么都没留下…
展开
-
88、元素柱击打问题建模
元素柱击打问题建模原创 2023-01-28 16:34:15 · 95 阅读 · 0 评论 -
82、时间装饰器
import timeloop = 1def timeLog(f): def wrapper(*args, **kw): global loop now = time.perf_counter() res = f(*args, **kw) print("%s-%s:"%(loop, f.__name__), time.perf_counter()-now) return res return wrapp.原创 2021-11-15 10:43:41 · 113 阅读 · 0 评论 -
74、mac安装一些软件踩过的坑
conda:https://www.jianshu.com/p/13f5d20e61f8原创 2021-03-31 10:41:05 · 98 阅读 · 0 评论 -
61、Top-K
https://juejin.im/entry/5ba385dbe51d450e5d0b0a76原创 2020-06-08 17:46:35 · 602 阅读 · 0 评论 -
26、启发式方法
为了找出地球上最高的山,一群有志气的兔子们开始想办法。(1)兔子朝着比现在高的地方跳去。他们找到了不远处的最高山峰。但是这座山不一定是珠穆朗玛峰。这就是爬山法,它不能保证局部最优值就是全局最优值。(2)兔子喝醉了。他随机地跳了很长时间。这期间,它可能走向高处,也可能踏入平地。但是,他渐渐清醒了并朝他踏过的最高方向跳去。这就是模拟退火。(3)兔子们知道一个兔的力量是渺小的。他们互相转告着...转载 2019-05-21 09:33:05 · 2954 阅读 · 1 评论 -
24、leetcode(python)
# -*- coding: utf-8 -*-"""Created on Thu May 30 23:55:33 2019@author: 40292""""""1.给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。示例...原创 2019-04-03 08:44:15 · 330 阅读 · 0 评论 -
9、生存分析
import reimport pandas as pdimport numpy as npimport osimport matplotlib.pyplot as pltimport copydef data_parameter_xls(name, idex_dead, idex_alive): print("文件名开始获取") sheets_name ...原创 2019-01-14 19:29:35 · 541 阅读 · 0 评论 -
8、lintcode学习总结
# -*- coding: utf-8 -*-"""Created on Fri Jun 22 11:28:01 2018@author: zhangchaoyu""" """1. A + B ProblemWrite a function that add two numbers A and B.ExampleGiven a=1 and b=2 return 3....原创 2018-06-22 17:39:02 · 623 阅读 · 0 评论