Skip to content

debadutta98/Codeforhunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

# Title Solution Runtime
2 Add Two Numbers Java 14 ms
7 Reverse Integer Java 3 ms
9 Palindrome Number Java 9 ms
11 Container With Most Water Java 5 ms
12 Integer to Roman Java 14 ms
13 Roman to Integer Java 7 ms
14 Longest Common Prefix Java 2 ms
15 3Sum Java 1973 ms
19 Remove Nth Node From End of List Java 0 ms
20 Valid Parentheses Java 1 ms
21 Merge Two Sorted Lists Java 2 ms
24 Swap Nodes in Pairs Java 0 ms
26 Remove Duplicates from Sorted Array Java 0 ms
27 Remove Element Java 1 ms
28 Implement strStr() Java 0 ms
58 Length of Last Word Java 1 ms
61 Rotate List Java 344 ms
66 Plus One Java 8 ms
69 Sqrt(x) Java 1 ms
70 Climbing Stairs Java 0 ms
71 Simplify Path Java 5 ms
74 Search a 2D Matrix Java 0 ms
75 Sort Colors Java 1 ms
80 Remove Duplicates from Sorted Array II Java 1 ms
98 Validate Binary Search Tree Java 1 ms
100 Same Tree Java 0 ms
103 Binary Tree Zigzag Level Order Traversal Java 13 ms
108 Convert Sorted Array to Binary Search Tree Java 0 ms
111 Minimum Depth of Binary Tree Java 12 ms
112 Path Sum Java 0 ms
134 Gas Station Java 2 ms
143 Reorder List Java 4 ms
150 Evaluate Reverse Polish Notation Java 10 ms
164 Maximum Gap Java 640 ms
167 Two Sum II - Input Array Is Sorted Java 8 ms
173 Binary Search Tree Iterator Java 14 ms
215 Kth Largest Element in an Array Java 149 ms
230 Kth Smallest Element in a BST Java 7 ms
240 Search a 2D Matrix II Java 5 ms
257 Binary Tree Paths Java 10 ms
297 Serialize and Deserialize Binary Tree Java 123 ms
347 Top K Frequent Elements Java 27 ms
451 Sort Characters By Frequency Java 1189 ms
485 Max Consecutive Ones Java 2 ms
692 Top K Frequent Words Java 11 ms
701 Insert into a Binary Search Tree Java 0 ms
704 Binary Search Java 0 ms
739 Daily Temperatures Java 204 ms
763 Partition Labels Java 11 ms
832 Flipping an Image Java 1 ms
852 Peak Index in a Mountain Array Java 20 ms
861 Score After Flipping Matrix Java 6 ms
881 Boats to Save People Java 14 ms
912 Sort an Array Java 82 ms
921 Minimum Add to Make Parentheses Valid Java 2 ms
938 Range Sum of BST Java 2 ms
946 Validate Stack Sequences Java 7 ms
973 K Closest Points to Origin Java 89 ms
1004 Max Consecutive Ones III Java 1578 ms
1019 Next Greater Node In Linked List Java 57 ms
1026 Maximum Difference Between Node and Ancestor Java 1 ms
1190 Reverse Substrings Between Each Pair of Parentheses Java 10 ms
1302 Deepest Leaves Sum Java 16 ms
1305 All Elements in Two Binary Search Trees Java 65 ms
1315 Sum of Nodes with Even-Valued Grandparent Java 2 ms
1323 Maximum 69 Number Java 2 ms
1325 Delete Leaves With a Given Value Java 1 ms
1338 Reduce Array Size to The Half Java 309 ms
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Java 856 ms
1400 Construct K Palindrome Strings Java 43 ms
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Java 8 ms
1433 Check If a String Can Break Another String Java 11 ms
1448 Count Good Nodes in Binary Tree Java 2 ms
1464 Maximum Product of Two Elements in an Array Java 6 ms
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Java 17 ms
1475 Final Prices With a Special Discount in a Shop Java 5 ms
1480 Running Sum of 1d Array Java 0 ms
1488 Avoid Flood in The City Java 118 ms
1493 Longest Subarray of 1's After Deleting One Element Java 6 ms
1529 Minimum Suffix Flips Java 17 ms
1561 Maximum Number of Coins You Can Get Java 41 ms
1572 Matrix Diagonal Sum Java 2 ms
1588 Sum of All Odd Length Subarrays Java 1 ms
1605 Find Valid Matrix Given Row and Column Sums Java 10 ms
1663 Smallest String With A Given Numeric Value Java 277 ms
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Java 73 ms
1710 Maximum Units on a Truck Java 105 ms
1720 Decode XORed Array Java 3 ms
1732 Find the Highest Altitude Java 0 ms
1738 Find Kth Largest XOR Coordinate Value Java 925 ms
1753 Maximum Score From Removing Stones Java 190 ms
1833 Maximum Ice Cream Bars Java 43 ms
1876 Substrings of Size Three with Distinct Characters Java 25 ms
1877 Minimize Maximum Pair Sum in Array Java 69 ms
1962 Remove Stones to Minimize the Total Java 1086 ms
1979 Find Greatest Common Divisor of Array Java 0 ms
2095 Delete the Middle Node of a Linked List Java 8 ms
2130 Maximum Twin Sum of a Linked List Java 56 ms
2181 Merge Nodes in Between Zeros Java 23 ms
2265 Count Nodes Equal to Average of Subtree Java 250 ms
2269 Find the K-Beauty of a Number Java 9 ms
2279 Maximum Bags With Full Capacity of Rocks Java 114 ms
2300 Successful Pairs of Spells and Potions Java 96 ms
2319 Check if Matrix Is X-Matrix Java 2 ms
2331 Evaluate Boolean Binary Tree Java 1 ms
2358 Maximum Number of Groups Entering a Competition Java 41 ms