Kotlin Leetcode 解題紀錄
這邊列舉一些用 Kotlin 解答 leetcode 題目的內容
- 1. Two Sum
- 2. Add Two Numbers
- 7. Reverse Integer
- 9. Palindrome Number
- 10. Regular Expression Matching
- 13. Roman to Integer
- 20. Valid Parentheses
- 21. Merge Two Sorted Lists
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 28. Implement strStr()
- 35. Search Insert Position
- 58. Length of Last Word
- 66. Plus One
- 67. Add Binary
- 69. Sqrt(x)
- 70. Climbing Stairs
- 100. Same Tree
- 104. Maximum Depth of Binary Tree
- 118. Pascal's Triangle
- 125. Valid Palindrome
- 136. Single Number
- 153. Find Minimum in Rotated Sorted Array
- 191. Number of 1 Bits
- 206. Reverse Linked List
- 226. Invert Binary Tree
- 231. Power of Two
- 234. Palindrome Linked List
- 258. Add Digits
- 268. Missing Number
- 326. Power of Three
- 342. Power of Four
- 344. Reverse String
- 404. Sum of Left Leaves
- 412. Fizz Buzz
- 461. Hamming Distance
- 470. Implement Rand10() Using Rand7()
- 476. Number Complement
- 509. Fibonacci Number
- 617. Merge Two Binary Trees
- 657. Robot Return to Origin
- 704. Binary Search
- 771. Jewels and Stones
- 965. Univalued Binary Tree
- 1051. Height Checker
- 1108. Defanging an IP Address
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1470. Shuffle the Array
- 1486. XOR Operation in an Array
- 1480. Running Sum of 1d Array
- 1528. Shuffle String
- 1720. Decode XORed Array
- 1791. Find Center of Star Graph
- 1859. Sorting the Sentence
- 1920. Build Array from Permutation
- 1929. Concatenation of Array
- 2011. Final Value of Variable After Performing Operations
- 2032. Two Out of Three
- 2114. Maximum Number of Words Found in Sentences
- 2235. Add Two Integers