Skip to content

The solutions I did for the Leetcode questions in Ruby and some helpers and test case for verifying the binary tree

Notifications You must be signed in to change notification settings

nch3ng/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My leetcode solutions

Language: java ruby javascript python
Last updated: 2018-06-09

The source code is fetched using the tool leetcode-spider.

# Problems Solutions Difficulty Acceptance Paid-Only
001 two-sum java ruby javascript python Easy 38.34%
002 add-two-numbers ruby java Medium 28.85%
003 longest-substring-without-repeating-characters java ruby Medium 24.78%
006 zigzag-conversion ruby Medium 27.73%
007 reverse-integer javascript Easy 24.38%
020 valid-parentheses python Easy 34.18%
026 remove-duplicates-from-sorted-array java ruby Easy 36.87%
027 remove-element ruby Easy 41.18%
028 implement-strstr ruby Easy 29.25%
048 rotate-image python Medium 42.53%
067 add-binary ruby Easy 34.59%
106 construct-binary-tree-from-inorder-and-postorder-traversal ruby Medium 34.30%
107 binary-tree-level-order-traversal-ii ruby Easy 42.71%
108 convert-sorted-array-to-binary-search-tree ruby Easy 45.21%
110 balanced-binary-tree ruby Easy 38.68%
111 minimum-depth-of-binary-tree ruby Easy 33.71%
114 flatten-binary-tree-to-linked-list ruby Medium 37.15%
139 word-break ruby Medium 31.81%
144 binary-tree-preorder-traversal ruby Medium 47.36%
145 binary-tree-postorder-traversal ruby Hard 42.98%
150 evaluate-reverse-polish-notation java ruby Medium 28.84%
173 binary-search-tree-iterator ruby Medium 43.92%
199 binary-tree-right-side-view ruby Medium 43.01%
200 number-of-islands python Medium 37.04%
206 reverse-linked-list ruby Easy 47.42%
217 contains-duplicate ruby Easy 47.54%
219 contains-duplicate-ii java ruby Easy 32.98%
226 invert-binary-tree ruby Easy 53.90%
235 lowest-common-ancestor-of-a-binary-search-tree ruby Easy 39.98%
236 lowest-common-ancestor-of-a-binary-tree ruby Medium 29.89%
257 binary-tree-paths ruby Easy 41.84%
283 move-zeroes java ruby Easy 51.80%
292 nim-game ruby Easy 55.38%
297 serialize-and-deserialize-binary-tree ruby Hard 35.49%
325 maximum-size-subarray-sum-equals-k ruby Medium 43.09% ✔️
768 partition-labels python Medium 64.54%
837 most-common-word python Easy 49.51%

About

The solutions I did for the Leetcode questions in Ruby and some helpers and test case for verifying the binary tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published