Leetcode
Introduction
Math
[258]Add Digits
[263]Ugly Number
[204]Count Primes
[7]Reverse Integer
[50]Pow(x, n)
[9]Palindrome Number
[172]Factorial Trailing Zeroes
[171]Excel Sheet Column Number
[202]Happy Number
[326]Power of Three
[453]Minimum Moves to Equal Array Elements
[223]Rectangle Area
[415]Add Strings
[441]Arranging Coins
[400]Nth Digit
[168]Excel Sheet Column Title
[396]Rotate Function
[8]String to Integer (atoi)
String
[13]Roman to Integer
[58]Length of last word
[344]Reverse String
[387]First Unique Character in a String
[67]Add Binary
[459]Repeated Substring Pattern
Bit Manipulation
[191]Number of 1 Bits
[190]Reverse Bits
[231]Power of Two
[371]Sum of Two Integers
[342]Power of Four
[389]Find the Difference
Array
[283]Move Zeroes
[27]Remove Element
[268]Miss Number
[66]Plus One
[349]Intersection of Two Arrays
[217]Contains Duplicate
[169]Majority Element
[1]Two Sum
[219]Contains Duplicate II
[118]Pascal's Triangle
[121]Best Time to Buy and Sell Stock
[119]Pascal's Triangle II
[26]Remove Duplicates from Sorted Array
[88]Merge Sorted Array
[350]Intersection of Two Arrays II
[189]Rotate Array
[152]Maximum Product Subarray
Linked List
[83]Remove Duplicates from Sorted List
[237]Delete Node in a Linked List
[19]Remove Nth Node From End of List
[203]Remove Linked List Elements
[141]Linked List Cycle
[206]Reverse Linked List
[21]Merge Two Sorted Lists
[160]Intersection of Two Linked Lists
[24]Swap Nodes in Pairs
[234]Palindrome Linked List
[2]Add Two Numbers
Tree
[235]Lowest Common Ancestor of a Binary Search Tree
[257]Binary Tree Paths
[101]Symmetric Tree
[102]Binary Tree Level Order Traversal
[107]Binary Tree Level Order Traversal II
[404]Sum of Left Leaves
[100]Same Tree
Dynamic Programming
[70]Climbing Stairs
[198]House Robber
[303]Range Sum Query - Immutable
Powered by
GitBook
Math
Math
找数学规律的时候可以设想最开始最基本的情况是什么样,然后特例都是通过不断加1来获得的。
当可以用额外的空间时,将数字转为字符串处理完以后再转回数字会是个不错的选择。
绝大多数时候都要考虑0,负数等特殊情况,要考虑溢出
results matching "
"
No results matching "
"