- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode 29. Divide Two Integers
problemDo not use multiplication, division and mod to calculate integers division.algorithmMake a list, in which the first value is the divisor and each next number is the double of the front one. ...
2019-10-07 18:00:27 104
原创 LeetCode 28. Implement strStr()
problemReturn the first index substring appear.algorithmTraverse the start index and matching.codeclass Solution: def strStr(self, haystack: str, needle: str) -> int: ln = len(need...
2019-10-07 17:27:50 83
原创 LeetCode 27. Remove Element
problemRemove the elements with value V, and do not use extra space.algorithmTraversing the array, swap the element to the end of the array.codeclass Solution: def removeElement(self, nums: L...
2019-10-07 17:24:01 74
原创 LeetCode 26. Remove Duplicates from Sorted Array
problemCount the different number in the array, and do not use extra space.algorithmTraversing 他和array, swap the number, when find a bigger one.codeclass Solution: def removeDuplicates(self, ...
2019-10-07 17:20:49 83
SOFA: A Multi-Model Framework for Interactive Physical Simulation
2018-06-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人