摘要:
复制: 鼠标选中就复制了 粘贴: 粘贴到xterm里面 shift+Insert; 粘贴到其他应用 shift + 鼠标滚轮; https://askubuntu.com/questions/237942/how-does-copy-paste-work-with-xterm 阅读全文
摘要:
1 def partition(start,end,array): 2 pivot=array[start] 3 left,right=start+1,end 4 5 while True: 6 7 while left<=right and array[left]<=pivot: 8 left+= 阅读全文
摘要:
https://leetcode-cn.com/problems/hua-dong-chuang-kou-de-zui-da-zhi-lcof/ https://leetcode-cn.com/problems/min-stack-lcci/ 1. 这两题都是要在O(1)时间内得到当前栈内的最小值 阅读全文
摘要:
https://kexue.fm/archives/5542 阅读全文
摘要:
https://stackoverflow.com/questions/50747947/embedding-in-pytorch 阅读全文
摘要:
返回时间取值在 ‘2019-02-01’ - ‘2019-02-28’ 之间的值 ; 需要使用两个条件; 方法: 1. 两个条件都需要用括号括起来,并用&连接 fourth_dict_2019[name] = data[(data.ds>=time[0])&(data.ds<=time[1]) ] 阅读全文
摘要:
https://blog.csdn.net/cetrol_chen/article/details/91129806 阅读全文
摘要:
class Solution: def maxCoins(self, nums: List[int]) -> int: # DP 因为dp[left][right] = argmax(dp[left][i]+dp[i][right]+left*i*right) # 这个遍历顺序就是,先中间,后两边 阅读全文
摘要:
https://leetcode-cn.com/problems/word-break-ii/ class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> List[str]: # 本题就是加上剪枝的回溯算法 # recor 阅读全文
摘要:
https://blog.csdn.net/cetrol_chen/article/details/91129806 https://www.jianshu.com/p/31e20f00c26f?spm=5176.12282029.0.0.36241491UUhnZE 阅读全文