Some solved problems from LeetCode on Java.
Profile on LeetCode: fartem.
Name | Link to LeetCode | Link to solution |
---|---|---|
1. Two Sum | Link | Link |
9. Palindrome Number | Link | Link |
13. Roman to Integer | Link | Link |
14. Longest Common Prefix | Link | Link |
20. Valid Parentheses | Link | Link |
21. Merge Two Sorted Lists | Link | Link |
27. Remove Element | Link | Link |
35. Search Insert Position | Link | Link |
58. Length of Last Word | Link | Link |
66. Plus One | Link | Link |
67. Add Binary | Link | Link |
69. Sqrt(x) | Link | Link |
70. Climbing Stairs | Link | Link |
83. Remove Duplicates from Sorted List | Link | Link |
88. Merge Sorted Array | Link | Link |
94. Binary Tree Inorder Traversal | Link | Link |
100. Same Tree | Link | Link |
101. Symmetric Tree | Link | Link |
104. Maximum Depth of Binary Tree | Link | Link |
108. Convert Sorted Array to Binary Search Tree | Link | Link |
110. Balanced Binary Tree | Link | Link |
111. Minimum Depth of Binary Tree | Link | Link |
112. Path Sum | Link | Link |
118. Pascal's Triangle | Link | Link |
3516. Find Closest Person | Link | Link |