/leetcode-solutions

Solutions for the Leetcode problems

Primary LanguageJava

Leetcode

# Title Solution Runtime
3 Longest Substring Without Repeating Characters Java 6 ms
5 Longest Palindromic Substring Java 29 ms
11 Container With Most Water Java 2 ms
12 Integer to Roman Java 9 ms
13 Roman to Integer Java 51 ms
14 Longest Common Prefix Java 0 ms
17 Letter Combinations of a Phone Number Java 0 ms
20 Valid Parentheses Java 1 ms
22 Generate Parentheses Java
26 Remove Duplicates from Sorted Array Java 0 ms
27 Remove Element Java 0 ms
28 Implement strStr() Java 0 ms
38 Count and Say Java 1 ms
49 Group Anagrams Java 6 ms
50 Pow(x, n) Java 0 ms
51 N-Queens Java 6 ms
53 Maximum Subarray Java 1 ms
66 Plus One Java 0 ms
67 Add Binary Java 23 ms
75 Sort Colors Java 0 ms
80 Remove Duplicates from Sorted Array II Java 0 ms
88 Merge Sorted Array Java 0 ms
91 Decode Ways Java 0 ms
102 Binary Tree Level Order Traversal Java 0 ms
121 Best Time to Buy and Sell Stock Java 3 ms
125 Valid Palindrome Java 164 ms
141 Linked List Cycle Java 0 ms
169 Majority Element Java 8 ms
189 Rotate Array Java 421 ms
227 Basic Calculator II Java 10 ms
257 Binary Tree Paths Java 8 ms
274 H-Index Java 1 ms
283 Move Zeroes Java 0 ms
287 Find the Duplicate Number Java 2 ms
292 Nim Game Java 0 ms
344 Reverse String Java 1 ms
350 Intersection of Two Arrays II Java 2 ms
380 Insert Delete GetRandom O(1) Java 242 ms
387 First Unique Character in a String Java 25 ms
437 Path Sum III Java 18 ms
495 Teemo Attacking Java 1 ms
905 Sort Array By Parity Java 1 ms
938 Range Sum of BST Java 0 ms
977 Squares of a Sorted Array Java 1 ms
1046 Last Stone Weight Java 2 ms
1299 Replace Elements with Greatest Element on Right Side Java 1 ms
1480 Running Sum of 1d Array Java 0 ms
1678 Goal Parser Interpretation Java 0 ms
1773 Count Items Matching a Rule Java 4 ms