代码改变世界

[LeetCode] 702. Search in a Sorted Array of Unknown Size_Medium tag: Binary Search

2019-04-17 10:00 by Johnson_强生仔仔, 4 阅读, 0 推荐, 收藏, 编辑
该文被密码保护。 阅读全文

[LeetCode] 系统刷题2_Binary search

2019-04-16 10:27 by Johnson_强生仔仔, 257 阅读, 0 推荐, 收藏, 编辑
摘要:可以参考 [LeetCode] questions conclusion_ Binary Search 阅读全文

[LeetCode] 33. Search in Rotated Sorted Array_Medium tag: Binary Search

2019-04-16 10:26 by Johnson_强生仔仔, 189 阅读, 0 推荐, 收藏, 编辑
摘要:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Y 阅读全文

[LeetCode] 系统刷题3_排列组合/backtracking

2019-04-11 10:23 by Johnson_强生仔仔, 316 阅读, 0 推荐, 收藏, 编辑
摘要:适用范围: 几乎所有搜索问题 什么时候输出 哪些情况需要跳过 Python library import itertools itertools.product('ABC', repeat = 2) 3 * 3 = 9 list(itertools.product('ABC', repeat = 2 阅读全文

[LeetCode] 90.Subsets II tag: backtracking

2019-04-11 10:21 by Johnson_强生仔仔, 259 阅读, 0 推荐, 收藏, 编辑
摘要:Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta 阅读全文

[JavaScript] Frequently used method or solutions for issues

2019-04-03 02:09 by Johnson_强生仔仔, 228 阅读, 0 推荐, 收藏, 编辑
摘要:Get the file name from the file path Solution: 阅读全文

[CSS] Frequently used method or solutions for issues

2019-04-01 22:47 by Johnson_强生仔仔, 295 阅读, 0 推荐, 收藏, 编辑
摘要:Stick button in right side in html Solution: Set the size of textarea in CSS. Solution: Set the item at the top besides the textarea set font like thi 阅读全文

[Python] Print input and output in table

2019-03-20 04:00 by Johnson_强生仔仔, 325 阅读, 0 推荐, 收藏, 编辑
摘要:Print the input and output in a table using prettyTable. 阅读全文

Solutions_issues in pip

2019-03-20 03:47 by Johnson_强生仔仔, 208 阅读, 0 推荐, 收藏, 编辑
摘要:pip fails ssl verification Solution: If there is no pip installed, check whether the system have python installed. If it has python installed, then tr 阅读全文

[LeetCode] 系统刷题1_代码风格及边界

2019-02-10 10:58 by Johnson_强生仔仔, 607 阅读, 0 推荐, 收藏, 编辑
摘要:代码风格 不说自己不清楚的算法,比如KMP,如果解释不清楚或者写不出来的算法建议不提 注意代码的缩进以及空格的合理运用,使得代码看起来比较整洁有条理 注意边界的条件以及越界 误区: 算法想出来还仅仅不够 算法写出来也还不够 试着从面试官的角度来思考: coding风格(缩进,括号,变量名) codi 阅读全文
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 39 下一页