Giter Site home page Giter Site logo

raul-sauco / coding-challenges Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 4.0 2.76 MB

Coding challenges of the style found in technical interviews. The problems come from different sources like LeetCode, LintCode, CodeWars, Cracking The Coding Interview, etc.

License: MIT License

Python 71.00% Dart 0.11% Java 0.39% Rust 27.64% JavaScript 0.87%
algorithms codewars codewars-solutions cracking-the-coding-interview ctci dsa dsa-learning-series dsa-practice dsalgo leetcode

coding-challenges's Introduction

LeetCode problems

Solutions to LeetCode problems. The first column links to the problem in LeetCode, the second one is the problem's difficulty the last one links to the solution in this repository.

πŸ” Back to Top πŸ”

LeetCode link Difficulty Solution links
1. Two Sum 🟒 Easy python rust dart
2. Add Two Numbers 🟠 Medium python rust
3. Longest Substring Without Repeating Characters 🟠 Medium python
4. Median of Two Sorted Arrays πŸ”΄ Hard python rust
5. Longest Palindromic Substring 🟠 Medium python rust
6. Zigzag Conversion 🟠 Medium python rust
7. Reverse Integer 🟠 Medium python
8. String to Integer (atoi) 🟠 Medium python
9. Palindrome Number 🟒 Easy python
10. Regular Expression Matching πŸ”΄ Hard rust
11. Container With Most Water 🟠 Medium python
12. Integer to Roman 🟠 Medium python
13. Roman to Integer 🟒 Easy python
14. Longest Common Prefix 🟒 Easy python
15. 3Sum 🟠 Medium python
16. 3Sum Closest 🟠 Medium python
17. Letter Combinations of a Phone Number 🟠 Medium python
18. 4Sum 🟠 Medium python rust
19. Remove Nth Node From End of List 🟠 Medium python
20. Valid Parentheses 🟒 Easy python rust
21. Merge Two Sorted Lists 🟒 Easy python
22. Generate Parentheses 🟠 Medium python
23. Merge k Sorted Lists πŸ”΄ Hard python rust
24. Swap Nodes in Pairs 🟠 Medium python rust
25. Reverse Nodes in k-Group πŸ”΄ Hard python
26. Remove Duplicates from Sorted Array 🟒 Easy python
27. Remove Element 🟒 Easy python
28. Find the Index of the First Occurrence in a String 🟠 Medium python rust
29. Divide two integers 🟠 Medium python
31. Next Permutation 🟠 Medium rust
33. Search in Rotated Sorted Array 🟠 Medium python rust
34. Find First and Last Position of Element in Sorted Array 🟠 Medium python rust
35. Search Insert Position 🟒 Easy python rust
36. Valid Sudoku 🟠 Medium python
37. Sudoku Solver πŸ”΄ Hard python
38. Count and Say 🟠 Medium python
39. Combination Sum 🟠 Medium python
40. Combination Sum II 🟠 Medium python
41. First Missing Positive πŸ”΄ Hard python rust
42. Trapping Rain Water πŸ”΄ Hard python rust
43. Multiply Strings 🟠 Medium python
45. Jump Game II 🟠 Medium python rust
46. Permutations 🟠 Medium python
47. Permutations II 🟠 Medium rust
48. Rotate Image 🟠 Medium python
49. Group Anagrams 🟠 Medium python
50. Pow(x, n) 🟠 Medium python
51. N-Queens πŸ”΄ Hard python
52. N-Queens II πŸ”΄ Hard python
53. Maximum Subarray 🟒 Easy python
54. Spiral Matrix 🟠 Medium python rust
55. Jump Game 🟠 Medium python
56. Merge Intervals 🟠 Medium python
57. Insert Interval 🟠 Medium python rust
58. Length of Last Word 🟒 Easy python rust
59. Spiral Matrix II 🟠 Medium rust
62. Unique Paths 🟠 Medium python rust
63. Unique Paths II 🟠 Medium python rust
64. Minimum Path Sum 🟠 Medium rust
66. Plus One 🟒 Easy python
67. Add Binary 🟒 Easy python rust
70. Climbing Stairs 🟒 Easy python rust
71. Simplify Path 🟠 Medium python rust
72. Edit Distance πŸ”΄ Hard python rust
73. Set Matrix Zeroes 🟠 Medium python
74. Search a 2D Matrix 🟠 Medium python
76. Minimum Window Substring πŸ”΄ Hard python
77. Combinations 🟠 Medium rust
78. Subsets 🟠 Medium python
79. Word Search 🟠 Medium python
80. Remove Duplicates from Sorted Array II 🟠 Medium python rust
83. Remove Duplicates from Sorted List 🟒 Easy python
84. Largest Rectaegle in Histogram πŸ”΄ Hard python rust
86. Partition List 🟠 Medium python
87. Scramble String πŸ”΄ Hard python
88. Merge Sorted Array 🟒 Easy python
90. Subsets II 🟠 Medium python
91. Decode Ways 🟠 Medium python
92. Reverse Linked List II 🟠 Medium python
93. Restore IP Addresses 🟠 Medium python
94. Binary Tree Inorder Traversal 🟒 Easy python
97. Interleaving String 🟠 Medium python
98. Validate Binary Search Tree 🟠 Medium python
100. Same Tree 🟒 Easy python rust
101. Symmetric Tree 🟒 Easy python rust
102. Binary Tree Level Order Traversal 🟠 Medium python
103. Binary Tree Zigzag Level Order Traversal 🟠 Medium python rust
104. Maximum Depth of Binary Tree 🟒 Easy python rust
105. Construct Binary Tree from Preorder and Inorder Traversal 🟠 Medium python
106. Construct Binary Tree from Inorder and Postorder Traversal 🟠 Medium python rust
108. Convert Sorted Array to Binary Search Tree 🟒 Easy python
109. Convert Sorted List to Binary Search Tree 🟠 Medium python rust
110. Balanced Binary Tree 🟒 Easy python
111. Minimum Depth of Binary Tree 🟒 Easy rust
112. Path Sum 🟒 Easy python
113. Path Sum II 🟠 Medium python
114. Flatten Binary Tree to Linked List 🟠 Medium python
115. Distinct Subsequences πŸ”΄ Hard python
118. Pascal's Triangle 🟒 Easy python rust
119. Pascal's Triangle II 🟒 Easy python rust
120. Triangle 🟠 Medium python
121. Best Time to Buy and Sell Stock 🟒 Easy python rust
124. Binary Tree Maximum Path Sum πŸ”΄ Hard python
125. Valid Palindrome 🟒 Easy python rust
127. Word Ladder πŸ”΄ Hard python
128. Longest Consecutive Sequence 🟠 Medium python
129. Sum Root to Leaf Numbers 🟠 Medium python rust
130. Surrounded Regions 🟠 Medium python
131. Palindrome Partitioning 🟠 Medium python
133. Clone Graph 🟠 Medium python
134. Gas Station 🟠 Medium python
135. Candy πŸ”΄ Hard python rust
136. Single Number 🟒 Easy python
138. Copy List with Random Pointer 🟠 Medium python
139. Word Break 🟠 Medium python
141. Linked List Cycle 🟒 Easy python
142. Linked List Cycle II 🟠 Medium python
143. Reorder List 🟠 Medium python
144. Binary Tree Preorder Traversal 🟒 Easy python
146. LRU Cache 🟠 Medium python
148. Sort List 🟠 Medium python
149. Max Points on a Line πŸ”΄ Hard python
150. Evaluate Reverse Polish Notation 🟠 Medium python
151. Reverse Words in a String 🟠 Medium python
152. Maximum Product Subarray 🟠 Medium python
153. Find Minimum in Rotated Sorted Array 🟠 Medium python
155. Min Stack 🟠 Medium python
160. Intersection of Two Linked Lists 🟒 Easy python
164. Maximum Gap 🟠 Medium rust
165. Compare Version Numbers 🟠 Medium rust
167. Two Sum II - Input Array Is Sorted 🟠 Medium python
168. Excel Sheet Column Title 🟒 Easy python rust
169. Majority Element 🟒 Easy python rust
171. Excel Sheet Column Number 🟒 Easy python rust
173. Binary Search Tree Iterator 🟠 Medium python
174. Dungeon Game πŸ”΄ Hard python rust
190. Reverse Bits 🟒 Easy python
191. Number of 1 Bits 🟒 Easy python rust
198. House Robber 🟠 Medium python rust
199. Binary Tree Right Side View 🟠 Medium python
200. Number of Islands 🟠 Medium python
201. Bitwise AND of Numbers Range 🟠 Medium rust
202. Happy Number 🟒 Easy python
203. Remove Linked List Elements 🟒 Easy python
205. Isomorphic Strings 🟒 Easy python rust
206. Reverse Linked List 🟒 Easy python rust
207. Course Schedule 🟠 Medium python
208. Implement Trie (Prefix Tree) 🟠 Medium python rust
209. Minimum Size Subarray Sum 🟠 Medium rust
210. Course Schedule II 🟠 Medium python
211. Design Add and Search Words Data Structure 🟠 Medium python rust
212. Word Search II πŸ”΄ Hard python
213. House Robber II 🟠 Medium python
215. Kth Largest Element in an Array 🟠 Medium python
217. Contains Duplicate 🟒 Easy python rust
218. The Skyline Problem πŸ”΄ Hard python
219. Contains Duplicate II 🟒 Easy python
222. Count Complete Tree Nodes 🟠 Medium python
223. Rectangle Area 🟠 Medium python
225. Implement Stack using Queues 🟒 Easy python
226. Invert Binary Tree 🟒 Easy python rust
227. Basic Calculator II 🟠 Medium python
228. Summary Ranges 🟒 Easy rust
230. Kth Smallest Element in a BST 🟠 Medium python
231. Power of Two 🟒 Easy rust
232. Implement Queue using Stacks 🟒 Easy python
234. Palindrome Linked List 🟒 Easy python rust
235. Lowest Common Ancestor of a Binary Search Tree 🟠 Medium python
236. Lowest Common Ancestor of a Binary Tree 🟠 Medium python
237. Delete Node in a Linked List 🟠 Medium python
238. Product of Array Except Self 🟠 Medium python rust
239. Sliding Window Maximum πŸ”΄ Hard python rust
240. Search a 2D Matrix II 🟠 Medium python
242. Valid Anagram 🟒 Easy python
252. Meeting Rooms πŸ”’ 🟒 Easy python
253. Meeting Rooms II πŸ”’ 🟠 Medium python
256. Paint House πŸ”’ 🟠 Medium python
258. Add Digits 🟒 Easy python rust
261. Graph Valid Tree πŸ”’ 🟠 Medium python
263. Ugly Number 🟒 Easy python
268. Missing Number 🟒 Easy python rust
269. Alien Dictionary πŸ”’ πŸ”΄ Hard python
271. Encode and Decode Strings πŸ”’ 🟠 Medium python
278. First Bad Version 🟒 Easy python
286. Walls and Gates πŸ”’ 🟠 Medium python
287. Find the Duplicate Number 🟠 Medium python rust
290. Word Pattern 🟒 Easy python
295. Find Median from Data Stream πŸ”΄ Hard python
297. Serialize and Deserialize Binary Tree πŸ”΄ Hard python
299. Bulls and Cows 🟠 Medium python
300. Longest Increasing Subsequence 🟠 Medium python rust
303. Range Sum Query - Immutable 🟒 Easy python rust
304. Range Sum Query 2D - Immutable 🟠 Medium python rust
307. Range Sum Query - Mutable 🟠 Medium python
309. Best Time to Buy and Sell Stock with Cooldown 🟠 Medium python
312. Burst Balloons πŸ”΄ Hard rust
315. Count of Smaller Numbers After Self πŸ”΄ Hard python
316. Remove Duplicate Letters 🟠 Medium rust
319. Bulb Switcher 🟠 Medium python rust
322. Coin Change 🟠 Medium python
323. Number of Connected Components in an Undirected Graph πŸ”’ 🟠 Medium python
326. Power of Three 🟒 Easy python
328. Odd Even Linked List 🟠 Medium python
329. Longest Increasing Path in a Matrix πŸ”΄ Hard python
332. Reconstruct Itinerary πŸ”΄ Hard python rust
334. Increasing Triplet Subsequence 🟠 Medium python
337. House Robber III 🟠 Medium python
338. Counting Bits 🟒 Easy python rust
342. Power of Four 🟒 Easy python rust
345. Reverse Vowels of a String 🟒 Easy python
347. Top K Frequent Elements 🟠 Medium python rust
349. Intersection of Two Arrays 🟒 Easy rust
352. Data Stream as Disjoint Intervals πŸ”΄ Hard python
355. Design Twitter 🟠 Medium python
363. Max Sum of Rectangle No Larger Than K ⚠️ πŸ”΄ Hard python
368. Largest Divisible Subset 🟠 Medium rust
371. Sum of Two Integers 🟠 Medium python dart
373. Find K Pairs with Smallest Sums 🟠 Medium rust
374. Guess Number Higher or Lower 🟒 Easy python
376. Wiggle Subsequence 🟠 Medium python
377. Combination Sum IV 🟠 Medium python rust
378. Kth Smallest Element in a Sorted Matrix 🟠 Medium python
380. Insert Delete GetRandom O(1) 🟠 Medium python
382. Linked List Random Node 🟠 Medium python
383. Ransom Note 🟒 Easy python
387. First Unique Character in a String 🟒 Easy python rust
389. Find the Difference 🟒 Easy rust
392. Is Subsequence 🟒 Easy python rust
393. UTF-8 Validation 🟠 Medium python
394. Decode String 🟠 Medium python
399. Evaluate Division 🟠 Medium python
402. Remove K Digits 🟠 Medium rust
403. Frog Jump πŸ”΄ Hard rust
404. Sum of Left Leaves 🟒 Easy rust
406. Queue Reconstruction by Height 🟠 Medium python
407. Trapping Rain Water II πŸ”΄ Hard rust
409. Longest Palindrome 🟒 Easy python
416. Partition Equal Subset Sum 🟠 Medium python
417. Pacific Atlantic Water Flow 🟒 Easy python
424. Longest Repeating Character Replacement 🟠 Medium python
427. Construct Quad Tree 🟠 Medium python
429. N-ary Tree Level Order Traversal 🟠 Medium python
433. Minimum Genetic Mutation 🟠 Medium python
435. Non-overlapping Intervals 🟠 Medium python rust
437. Path Sum III 🟠 Medium python
438. Find All Anagrams in a String 🟠 Medium python rust
442. Find All Duplicates in an Array 🟠 Medium rust
443. String Compression 🟠 Medium python rust
445. Add Two Numbers II 🟠 Medium rust
446. Arithmetic Slices II - Subsequence πŸ”΄ Hard python
451. Sort Characters By Frequency 🟠 Medium python
452. Minimum Number of Arrows to Burst Balloons 🟠 Medium python rust
456. 132 Pattern 🟠 Medium rust
458. Poor Pigs πŸ”΄ Hard python rust
460. LFU Cache πŸ”΄ Hard python
463. Island Perimeter 🟒 Easy [rust][lc493rs]
472. Concatenated Words πŸ”΄ Hard python rust
473. Matchsticks to Square 🟠 Medium python
474. Ones and Zeroes 🟠 Medium python rust
491. Non-decreasing Subsequences 🟠 Medium python rust
494. Target Sum 🟠 Medium python
496. Next Greater Element I 🟒 Easy python
498. Diagonal Traverse 🟠 Medium python
501. Find Mode in Binary Search Tree 🟒 Easy rust
502. IPO πŸ”΄ Hard python rust
509. Fibonacci Number 🟒 Easy python
513. Find Bottom Left Tree Value 🟠 Medium rust
515. Find Largest Value in Each Tree Row 🟠 Medium rust
516. Longest Palindromic Subsequence 🟠 Medium python
518. Coin Change II 🟠 Medium python rust
520. Detect Capital 🟒 Easy python
523. Continuous Subarray Sum 🟠 Medium python
525. Contiguous Array 🟠 Medium rust
530. Minimum Absolute Difference in BST 🟒 Easy python
540. Single Element in a Sorted Array 🟠 Medium python rust
542. 01 Matrix 🟠 Medium python rust
543. Diameter of Binary Tree 🟒 Easy python rust
547. Number of Provinces 🟠 Medium rust
557. Reverse Words in a String III 🟒 Easy python
560. Subarray Sum Equals K 🟠 Medium python rust
567. Permutation in String 🟠 Medium python
572. Subtree of Another Tree 🟒 Easy python
576. Out of Boundary Paths 🟠 Medium python
583. Delete Operation for Two Strings 🟠 Medium python
587. Erect the Fence πŸ”΄ Hard python
589. N-ary Tree Preorder Traversal 🟒 Easy python
596. Classes More Than 5 Students 🟒 Easy mysql
599. Minimum Index Sum of Two Lists 🟒 Easy python
605. Can Place Flowers 🟒 Easy python rust
606. Construct String from Binary Tree 🟒 Easy python
609. Find Duplicate File in System 🟠 Medium python
621. Task Scheduler 🟠 Medium python rust
622. Design Circular Queue 🟠 Medium python
623. Add One Row to Tree 🟠 Medium python
629. K Inverse Pairs Array πŸ”΄ Hard python
630. Course Schedule III πŸ”΄ Hard python
637. Average of Levels in Binary Tree 🟒 Easy python
641. Design Circular Deque 🟠 Medium python
645. Set Mismatch 🟒 Easy python
646. Maximum Length of Pair Chain 🟠 Medium rust
647. Palindromic Substrings 🟠 Medium python rust
649. Dota2 Senate 🟠 Medium python
653. Two Sum IV - Input is a BST 🟒 Easy python
658. Find K Closest Elements 🟠 Medium python
659. Split Array into Consecutive Subsequences 🟠 Medium python
662. Maximum Width of Binary Tree 🟠 Medium python rust
665. Non-decreasing Array 🟠 Medium python
678. Valid Parenthesis String 🟠 Medium rust
684. Redundant Connection 🟠 Medium python
692. Top K Frequent Words 🟠 Medium python
695. Max Area of Island 🟠 Medium python
701. Insert into a Binary Search Tree 🟠 Medium python rust
703. Kth Largest Element in a Stream 🟒 Easy python rust
704. Binary Search 🟒 Easy python rust
705. Design HashSet 🟒 Easy rust
713. Subarray Product Less Than K 🟠 Medium rust
714. Best Time to Buy and Sell Stock with Transaction Fee 🟠 Medium rust
718. Maximum Length of Repeated Subarray 🟠 Medium python
724. Find Pivot Index 🟒 Easy python
725. Split Linked List in Parts 🟠 Medium python
729. My Calendar I 🟠 Medium python
733. Flood Fill 🟒 Easy python
735. Asteroid Collision 🟠 Medium python
739. Daily Temperatures 🟠 Medium python rust
743. Network Delay Time 🟠 Medium python
744. Find Smallest Letter Greater Than Target 🟒 Easy rust
745. Prefix and Suffix Search πŸ”΄ Hard python
746. Min Cost Climbing Stairs 🟒 Easy python rust
752. Open the Lock 🟠 Medium rust
763. Partition Labels 🟠 Medium python
766. Toeplitz Matrix 🟒 Easy python
778. Swim in Rising Water πŸ”΄ Hard python
779. K-th Symbol in Grammar 🟠 Medium rust
783. Minimum Distance Between BST Nodes 🟒 Easy python rust
785. Is Graph Bipartite? 🟠 Medium rust
787. Cheapest Flights Within K Stops 🟠 Medium python rust
790. Domino and Tromino Tiling 🟠 Medium python
791. Custom Sort String 🟠 Medium rust
792. Number of Matching Subsequences 🟠 Medium python
797. All Paths From Source to Target 🟠 Medium python
799. Champagne Tower 🟠 Medium rust
804. Unique Morse Code Words 🟒 Easy python
814. Binary Tree Pruning 🟠 Medium python
815. Bus Routes πŸ”΄ Hard python
820. Short Encoding of Words 🟠 Medium python
823. Binary Trees With Factors 🟠 Medium python rust
835. Image Overlap 🟠 Medium python
837. New 21 Game 🟠 Medium rust
838. Push Dominoes 🟠 Medium python
839. Similar String Groups πŸ”΄ Hard python
841. Keys and Rooms 🟠 Medium python
844. Backspace String Compare 🟒 Easy python rust
846. Hand of Straights 🟠 Medium python
847. Shortest Path Visiting All Nodes πŸ”΄ Hard rust
852. Peak Index in a Mountain Array 🟠 Medium rust
853. Car Fleet 🟠 Medium python
858. Mirror Reflection 🟠 Medium python
859. Buddy Strings 🟒 Easy rust
864. Shortest Path to Get All Keys πŸ”΄ Hard rust
867. Transpose Matrix 🟒 Easy python
869. Reordered Power of 2 🟠 Medium python
871. Minimum Number of Refueling Stops πŸ”΄ Hard python
872. Leaf-Similar Trees 🟒 Easy python
875. Koko Eating Bananas 🟠 Medium python rust
876. Middle of the Linked List 🟒 Easy python
879. Profitable Schemes πŸ”΄ Hard python
880. Decoded String at Index 🟠 Medium rust
881. Boats to Save People 🟠 Medium python rust
886. Possible Bipartition 🟠 Medium python
890. Find and Replace Pattern 🟠 Medium python
896. Monotonic Array 🟒 Easy rust
899. Orderly Queue πŸ”΄ Hard python
901. Online Stock Span 🟠 Medium python
904. Fruit Into Baskets 🟠 Medium python rust
905. Sort Array By Parity 🟒 Easy rust
909. Snakes and Ladders 🟠 Medium python rust
912. Sort an Array 🟠 Medium python rust
916. Word Subsets 🟠 Medium python
918. Maximum Sum Circular Subarray 🟠 Medium python rust
926. Flip String to Monotone Increasing 🟠 Medium python rust
930. Binary Subarrays With Sum 🟠 Medium rust
931. Minimum Falling Path Sum 🟠 Medium python
935. Knight Dialer 🟠 Medium rust
936. Stamping The Sequence πŸ”΄ Hard python
938. Range Sum of BST 🟒 Easy python rust
944. Delete Columns to Make Sorted 🟒 Easy python
946. Validate Stack Sequences 🟠 Medium python rust
947. Most Stones Removed with Same Row or Column 🟠 Medium python
948. Bag of Tokens 🟠 Medium python rust
950. Reveal Cards In Increasing Order 🟠 Medium rust
953. Verifying an Alien Dictionary 🟒 Easy python rust
956. Tallest Billboard 🟠 Medium python
958. Check Completeness of a Binary Tree 🟠 Medium python rust
967. Numbers With Same Consecutive Differences 🟠 Medium python
968. Binary Tree Cameras πŸ”΄ Hard python
973. K Closest Points to Origin 🟠 Medium python
974. Subarray Sums Divisible by K 🟠 Medium python rust
976. Largest Perimeter Triangle 🟒 Easy python
977. Squares of a Sorted Array 🟒 Easy rus
978. Longest Turbulent Subarray 🟠 Medium python rust
980. Unique Paths III πŸ”΄ Hard python
981. Time Based Key-Value Store 🟠 Medium python
983. Minimum Cost For Tickets 🟠 Medium python rust
985. Sum of Even Numbers After Queries 🟠 Medium python
987. Vertical Order Traversal of a Binary Tree πŸ”΄ Hard python
988. Smallest String Starting From Leaf 🟠 Medium rust
989. Add to Array-Form of Integer 🟒 Easy python rust
990. Satisfiability of Equality Equations 🟠 Medium python
992. Subarrays with K Different Integers πŸ”΄ Hard rust
994. Rotting Oranges 🟠 Medium python
997. Find the Town Judge 🟒 Easy python rust
999. Available Captures for Rook 🟒 Easy python
1008. Construct Binary Search Tree from Preorder Traversal 🟠 Medium python
1011. Capacity To Ship Packages Within D Days 🟠 Medium python rust
1020. Number of Enclaves 🟠 Medium rust
1026. Maximum Difference Between Node and Ancestor 🟠 Medium python
1027. Longest Arithmetic Subsequence 🟠 Medium rust
1035. Uncrossed Lines 🟠 Medium python rust
1041. Robot Bounded In Circle 🟠 Medium python
1046. Last Stone Weight 🟒 Easy python rust
1047. Remove All Adjacent Duplicates In String 🟒 Easy python
1048. Longest String Chain 🟠 Medium python
1061. Lexicographically Smallest Equivalent String 🟠 Medium python rust
1071. Greatest Common Divisor of Strings 🟒 Easy python rust
1074. Number of Submatrices That Sum to Target πŸ”΄ Hard python rust
1091. Shortest Path in Binary Matrix 🟠 Medium python
1095. Find in Mountain Array πŸ”΄ Hard rust
1108. Defanging an IP Address 🟒 Easy python
1129. Shortest Path with Alternating Colors 🟠 Medium python rust
1137. N-th Tribonacci Number 🟒 Easy python rust
1140. Stone Game II 🟠 Medium rust
1143. Longest Common Subsequence 🟠 Medium python
1146. Snapshot Array 🟠 Medium rust
1155. Number of Dice Rolls With Target Sum 🟠 Medium python
1161. Maximum Level Sum of a Binary Tree 🟠 Medium python
1162. As Far from Land as Possible 🟠 Medium python rust
1171. Remove Zero Sum Consecutive Nodes from Linked List 🟠 Medium python
1187. Make Array Strictly Increasing πŸ”΄ Hard python
1207. Unique Number of Occurrences 🟒 Easy python rust
1220. Count Vowels Permutation πŸ”΄ Hard python rust
1232. Check If It Is a Straight Line 🟒 Easy rust
1235. Maximum Profit in Job Scheduling πŸ”΄ Hard python rust
1239. Maximum Length of a Concatenated String with Unique Characters 🟠 Medium python
1254. Number of Closed Islands 🟠 Medium rust
1266. Minimum Time Visiting All Points 🟒 Easy rust
1268. Search Suggestions System 🟠 Medium python
1269. Number of Ways to Stay in the Same Place After Some Steps 🟠 Medium rust
1282. Group the People Given the Group Size They Belong To 🟠 Medium rust
1289. Minimum Falling Path Sum II πŸ”΄ Hard rust
1291. Sequential Digits 🟠 Medium rust
1293. Shortest Path in a Grid with Obstacles Elimination πŸ”΄ Hard python
1296. Divide Array in Sets of K Consecutive Numbers 🟠 Medium python
1312. Minimum Insertion Steps to Make a String Palindrome πŸ”΄ Hard python
1318. Minimum Flips to Make a OR b Equal to c 🟠 Medium python rust
1319. Number of Operations to Make Network Connected 🟠 Medium python rust java
1323. Maximum 69 Number 🟠 Medium python
1326. Minimum Number of Taps to Open to Water a Garden πŸ”΄ Hard rust
1328. Break a Palindrome 🟠 Medium python
1329. Sort the Matrix Diagonally 🟠 Medium python
1332. Remove Palindromic Subsequences 🟒 Easy python
1337. The K Weakest Rows in a Matrix 🟒 Easy rust
1339. Maximum Product of Splitted Binary Tree 🟠 Medium python
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold 🟠 Medium python rust
1345. Jump Game IV πŸ”΄ Hard python rust
1351. Count Negative Numbers in a Sorted Matrix 🟠 Medium rust
1354. Construct Target Array With Multiple Sums πŸ”΄ Hard python
1356. Sort Integers by The Number of 1 Bits 🟒 Easy rust
1359. Count All Valid Pickup and Delivery Options πŸ”΄ Hard rust
1361. Validate Binary Tree Nodes 🟠 Medium rust
1363. Largest Multiple of Three πŸ”΄ Hard rust
1372. Longest ZigZag Path in a Binary Tree 🟠 Medium python rust
1376. Time Needed to Inform All Employees 🟠 Medium rust
1377. Frog Position After T Seconds πŸ”΄ Hard rust
1383. Maximum Performance of a Team πŸ”΄ Hard python
1396. Design Underground System 🟠 Medium rust
1402. Reducing Dishes πŸ”΄ Hard python rust
1406. Stone Game III πŸ”΄ Hard rust
1416. Restore The Array πŸ”΄ Hard python rust
1423. Maximum Points You Can Obtain from Cards 🟠 Medium python
1424. Diagonal Traverse II 🟠 Medium rust
1425. Constrained Subsequence Sum πŸ”΄ Hard rust
1431. Kids With the Greatest Number of Candies 🟒 Easy python rust
1441. Build an Array With Stack Operations 🟠 Medium rust
1443. Minimum Time to Collect All Apples in a Tree 🟠 Medium python
1448. Count Good Nodes in Binary Tree 🟠 Medium python
1456. Maximum Number of Vowels in a Substring of Given Length 🟠 Medium rust
1457. Pseudo-Palindromic Paths in a Binary Tree 🟠 Medium python rust
1461. Check If a String Contains All Binary Codes of Size K 🟠 Medium python
1462. Course Schedule IV 🟠 Medium python rust
1463. Cherry Pickup II πŸ”΄ Hard rust
1465. Maximum Area of a Piece of Cake After Cuts 🟠 Medium python
1466. Reorder Routes to Make All Paths Lead to the City Zero 🟠 Medium python rust java
1470. Shuffle the Array 🟒 Easy python
1472. Design Browser History 🟠 Medium python rust
1473. Paint House III πŸ”΄ Hard python
1480. Running Sum of 1d Array 🟒 Easy python rust
1481. Least Number of Unique Integers after K Removals 🟠 Medium rust
1491. Average Salary Excluding the Minimum and Maximum Salary 🟒 Easy rust
1493. Longest Subarray of 1's After Deleting One Element 🟠 Medium rust
1498. Number of Subsequences That Satisfy the Given Sum Condition 🟠 Medium python
1502. Can Make Arithmetic Progression From Sequence 🟒 Easy rust
1503. Last Moment Before All Ants Fall Out of a Plank 🟠 Medium rust
1512. Number of Good Pairs 🟒 Easy rust
1514. Path with Maximum Probability 🟠 Medium rust
1519. Number of Nodes in the Sub-Tree With the Same Label 🟠 Medium python
1523. Count Odd Numbers in an Interval Range 🟒 Easy python rust
1535. Find the Winner of an Array Game 🟠 Medium rust
1539. Kth Missing Positive Number 🟒 Easy python rust
1544. Make The String Great 🟒 Easy python rust
1547. Minimum Cost to Cut a Stick πŸ”΄ Hard rust
1557. Minimum Number of Vertices to Reach All Nodes 🟠 Medium rust
1561. Maximum Number of Coins You Can Get 🟠 Medium rust
1569. Number of Ways to Reorder Array to Get Same BST πŸ”΄ Hard python
1572. Matrix Diagonal Sum 🟒 Easy rust
1575. Count All Possible Routes πŸ”΄ Hard python rust
1578. Minimum Time to Make Rope Colorful 🟠 Medium python
1579. Remove Max Number of Edges to Keep Graph Fully Traversable πŸ”΄ Hard python
1584. Min Cost to Connect All Points 🟠 Medium python rust
1603. Design Parking System 🟒 Easy python rust
1609. Even Odd Tree 🟠 Medium rust
1614. Maximum Nesting Depth of the Parentheses 🟒 Easy rust
1626. Best Team With No Conflicts 🟠 Medium python rust
1631. Path With Minimum Effort 🟠 Medium rust
1639. Number of Ways to Form a Target String Given a Dictionary πŸ”΄ Hard python
1642. Furthest Building You Can Reach 🟠 Medium python rust
1647. Minimum Deletions to Make Character Frequencies Unique 🟠 Medium python rust
1657. Determine if Two Strings Are Close 🟠 Medium python rust
1658. Minimum Operations to Reduce X to Zero 🟠 Medium python rust
1662. Check If Two String Arrays are Equivalent 🟒 Easy python rust
1669. Merge In Between Linked Lists 🟠 Medium python
1675. Minimize Deviation in Array πŸ”΄ Hard python rust
1680. Concatenation of Consecutive Binary Numbers 🟠 Medium python
1685. Sum of Absolute Differences in a Sorted Array 🟠 Medium rust
1689. Partitioning Into Minimum Number Of Deci-Binary Numbers 🟠 Medium python
1695. Maximum Erasure Value 🟠 Medium python
1696. Jump Game VI 🟠 Medium python
1697. Checking Existence of Edge Length Limited Paths πŸ”΄ Hard python
1700. Number of Students Unable to Eat Lunch 🟒 Easy rust
1704. Determine if String Halves Are Alike 🟒 Easy python
1706. Where Will the Ball Fall 🟠 Medium python
1710. Maximum Units on a Truck 🟒 Easy python
1721. Swapping Nodes in a Linked List 🟠 Medium python
1727. Largest Submatrix With Rearrangements 🟠 Medium rust
1732. Find the Highest Altitude 🟒 Easy rust
1743. Restore the Array From Adjacent Pairs 🟠 Medium rust
1750. Minimum Length of String After Deleting Similar Ends 🟠 Medium rust
1759. Count Number of Homogeneous Substrings 🟠 Medium rust
1768. Merge Strings Alternately 🟒 Easy python
1770. Maximum Score from Performing Multiplication Operations 🟠 Medium python
1793. Maximum Score of a Good Subarray πŸ”΄ Hard rust
1799. Maximize Score After N Operations πŸ”΄ Hard python
1802. Maximum Value at a Given Index in a Bounded Array 🟠 Medium python
1814. Count Nice Pairs in an Array 🟠 Medium rust
1822. Sign of the Product of an Array 🟒 Easy python rust
1832. Check if the Sentence Is Pangram 🟒 Easy python
1833. Maximum Ice Cream Bars 🟠 Medium python
1834. Single-Threaded CPU 🟠 Medium python
1838. Frequency of the Most Frequent Element 🟠 Medium rust
1845. Seat Reservation Manager 🟠 Medium rust
1846. Maximum Element After Decreasing and Rearranging 🟠 Medium rust
1854. Maximum Population Year 🟒 Easy python
1857. Largest Color Value in a Directed Graph πŸ”΄ Hard python
1877. Minimize Maximum Pair Sum in Array 🟠 Medium rust
1887. Reduction Operations to Make the Array Elements Equal 🟠 Medium rust
1899. Merge Triplets to Form Target Triplet 🟠 Medium python
1903. Largest Odd Number in String 🟒 Easy rust
1913. Maximum Product Difference Between Two Pairs 🟒 Easy rust
1921. Eliminate Maximum Number of Monsters 🟠 Medium rust
1926. Nearest Exit from Entrance in Maze 🟠 Medium python
1930. Unique Length-3 Palindromic Subsequences 🟠 Medium rust
1962. Remove Stones to Minimize the Total 🟠 Medium python
1964. Find the Longest Valid Obstacle Course at Each Position πŸ”΄ Hard rust
1970. Last Day Where You Can Still Cross πŸ”΄ Hard rust
1971. Find if Path Exists in Graph 🟒 Easy python
1980. Find Unique Binary String 🟠 Medium rust
1991. Find the Middle Index in Array 🟒 Easy python
1996. The Number of Weak Characters in the Game 🟠 Medium python
2000. Reverse Prefix of Word 🟒 Easy rust
2007. Find Original Array From Doubled Array 🟠 Medium python
2009. Minimum Number of Operations to Make Array Continuous πŸ”΄ Hard rust
2013. Detect Squares 🟠 Medium python
2024. Maximize the Confusion of an Exam 🟠 Medium rust
2050. Parallel Courses III πŸ”΄ Hard rust
2090. K Radius Subarray Averages 🟠 Medium rust
2092. Find All People With Secret πŸ”΄ Hard rust
2095. Delete the Middle Node of a Linked List 🟠 Medium python
2101. Detonate the Maximum Bombs 🟠 Medium rust
2108. Find First Palindromic String in the Array 🟒 Easy rust
2115. Find All Possible Recipes from Given Supplies 🟠 Medium python
2125. Number of Laser Beams in a Bank 🟠 Medium rust
2127. Maximum Employees to Be Invited to a Meeting πŸ”΄ Hard rust
2130. Maximum Twin Sum of a Linked List 🟠 Medium python rust
2131. Longest Palindrome by Concatenating Two Letter Words 🟠 Medium python
2136. Earliest Possible Day of Full Bloom πŸ”΄ Hard python
2140. Solving Questions With Brainpower 🟠 Medium rust
2147. Number of Ways to Divide a Long Corridor πŸ”΄ Hard rust
2149. Rearrange Array Elements by Sign 🟠 Medium rust
2187. Minimum Time to Complete Trips 🟠 Medium python rust
2215. Find the Difference of Two Arrays 🟒 Easy python rust
2218. Maximum Value of K Coins From Piles πŸ”΄ Hard python rust
2225. Find Players With Zero or One Losses 🟒 Easy python
2244. Minimum Rounds to Complete All Tasks 🟠 Medium python
2246. Longest Path With Different Adjacent Characters πŸ”΄ Hard python
2251. Number of Flowers in Full Bloom πŸ”΄ Hard rust
2256. Minimum Average Difference 🟠 Medium python
2265. Count Nodes Equal to Average of Subtree 🟠 Medium rust
2279. Maximum Bags With Full Capacity of Rocks 🟠 Medium python
2300. Successful Pairs of Spells and Potions 🟠 Medium python rust
2305. Fair Distribution of Cookies 🟠 Medium rust
2306. Naming a Company πŸ”΄ Hard python rust
2316. Count Unreachable Pairs of Nodes in an Undirected Graph 🟠 Medium rust
2328. Number of Increasing Paths in a Grid πŸ”΄ Hard python
2336. Smallest Number in Infinite Set 🟠 Medium python
2348. Number of Zero-Filled Subarrays 🟠 Medium python rust
2352. Equal Row and Column Pairs 🟠 Medium python
2353. Design a Food Rating System 🟠 Medium [rust][lc2352rs]
2359. Find Closest Node to Given Two Nodes 🟠 Medium python rust
2360. Longest Cycle in a Graph πŸ”΄ Hard python rust java
2366. Minimum Replacements to Sort the Array πŸ”΄ Hard rust
2370. Longest Ideal Subsequence 🟠 Medium rust
2389. Longest Subsequence With Limited Sum 🟒 Easy python
2390. Removing Stars From a String 🟠 Medium python rust
2391. Minimum Amount of Time to Collect Garbage 🟠 Medium rust
2402. Meeting Rooms III πŸ”΄ Hard rust
2405. Optimal Partition of String 🟠 Medium python rust
2421. Number of Good Paths πŸ”΄ Hard python rust
2433. Find The Original Array of Prefix Xor πŸ”΄ Hard rust
2439. Minimize Maximum of Array 🟠 Medium python rust
2441. Largest Positive Integer That Exists With Its Negative 🟒 Easy rust
2444. Count Subarrays With Fixed Bounds πŸ”΄ Hard python rust
2448. Minimum Cost to Make Array Equal πŸ”΄ Hard rust
2462. Total Cost to Hire K Workers 🟠 Medium python
2466. Count Ways To Build Good Strings 🟠 Medium rust
2477. Minimum Fuel Cost to Report to the Capital 🟠 Medium python rust
2481. Minimum Cuts to Divide a Circle 🟒 Easy python
2485. Find the Pivot Integer 🟒 Easy rust
2492. Minimum Score of a Path Between Two Cities 🟠 Medium python rust
2540. Minimum Common Value 🟒 Easy rust
2542. Maximum Subsequence Score 🟠 Medium rust
2543. Check if Point Is Reachable πŸ”΄ Hard python rust
2585. Number of Ways to Earn Points πŸ”΄ Hard python rust
2616. Minimize the Maximum Difference of Pairs 🟠 Medium rust
2618. Check if Object Instance of Class 🟠 Medium js
2619. Array Prototype Last 🟒 Easy js
2620. Counter 🟒 Easy js
2621. Sleep 🟒 Easy js
2622. Cache With Time Limit 🟠 Medium js
2623. Memoize 🟠 Medium js
2626. Array Reduce Transformation 🟒 Easy js
2627. Debounce 🟠 Medium js
2629. Function Composition 🟒 Easy js
2631. Group By 🟠 Medium js
2632. Curry 🟠 Medium js
2633. Convert Object to JSON String 🟠 Medium js
2634. Filter Elements from Array 🟒 Easy js
2635. Apply Transform Over Each Element in Array 🟒 Easy js
2636. Promise Pool 🟠 Medium js
2637. Promise Time Limit 🟒 Easy js
2648. Generate Fibonacci Sequence 🟒 Easy js
2649. Nested Array Generator 🟠 Medium js
2665. Counter II 🟒 Easy js
2666. Allow One Function Call 🟒 Easy js
2667. Create Hello World Function 🟒 Easy js
2675. Array of Objects to Matrix 🟠 Medium js
2676. Throttle 🟠 Medium js
2677. Chunk Array 🟒 Easy js
2693. Call Function with Custom Context 🟠 Medium js
2694. Event Emitter 🟠 Medium js
2695. Array Wrapper 🟒 Easy js
2700. Differences Between Two Objects 🟠 Medium js
2709. Greatest Common Divisor Traversal πŸ”΄ Hard python rust
2742. Painting the Walls πŸ”΄ Hard rust
2785. Sort Vowels in a String 🟠 Medium rust
2807. Insert Greatest Common Divisors in Linked List 🟠 Medium python
2849. Determine if a Cell Is Reachable at a Given Time 🟠 Medium rust
2864. Maximum Odd Binary Number 🟒 Easy rust
2870. Minimum Number of Operations to Make Array Empty 🟠 Medium rust
2958. Length of Longest Subarray With at Most K Frequency 🟠 Medium rust
2962. Count Subarrays Where Max Element Appears at Least K Times 🟠 Medium rust
2966. Divide Array Into Arrays With Max Difference 🟠 Medium rust
2971. Find Polygon With the Largest Perimeter 🟠 Medium rust
3005. Count Elements With Maximum Frequency 🟒 Easy rust

πŸ” Back to Top πŸ”

CodeWars problems

First column links to the problem in CodeWars, second is the problem's difficulty, in descending order, the last column links to solutions in this repository.

πŸ” Back to Top πŸ”

CodeWars Link Difficulty Solutions
Convert string to camel case 6kyu python
Who won the election? 6kyu python

πŸ” Back to Top πŸ”

AlgoExpert problems

First column links to the problem in AlgoExpert, second is the problem's difficulty, in descending order, the last column links to solutions in this repository.

πŸ” Back to Top πŸ”

AlgoExpert Link Difficulty Solutions
A-Star Algorithm 🟣 Very Hard python
Airport Connections 🟣 Very Hard python
Apartment Hunting 🟣 Very Hard python
Array Of Products 🟒 Easy python
Balanced Brackets 🟠 Medium python
Binary Search 🟒 Easy python
Branch Sums 🟒 Easy python
BST Construction 🟠 Medium python
BST Traversal 🟠 Medium python
Bubble Sort 🟒 Easy python
Caesar Cipher Encryptor 🟒 Easy python
Class Photos 🟒 Easy python
Cycle In Graph 🟠 Medium python
Depth-First Search 🟒 Easy python
Detect Arbitrage 🟣 Very Hard python
Dijkstra's Algorithm πŸ”΄ Hard python
Disk Stacking πŸ”΄ Hard python
Find Closest Value In BST 🟒 Easy python
Find Kth Largest Value in BST 🟠 Medium python
Find Loop πŸ”΄ Hard python
Find Three Largest Numbers 🟒 Easy python
First Duplicate Value 🟠 Medium python
First Non-Repeating Character 🟒 Easy python
Four Number Sum πŸ”΄ Hard python
Generate Document 🟒 Easy python
Insertion Sort 🟒 Easy python
Invert Binary Tree 🟠 Medium python
Iterative In Order Traversal 🟣 Very Hard python
Kadane's Algorithm 🟠 Medium python
Knapsack Problem πŸ”΄ Hard python
Knuth–Morris–Pratt Algorithm 🟣 Very Hard python
Kruskals Algorithm πŸ”΄ Hard python
Largest Range πŸ”΄ Hard python
Levenshtein Distance 🟠 Medium python
Linked List Construction 🟠 Medium python
Linked List Palindrome 🟣 Very Hard python
Longest Peak 🟠 Medium python
LRU Cache 🟣 Very Hard python
Max Profit With K Transactions 🟣 Very Hard python
Max Subset Sum No Adjacent 🟠 Medium python
Merge Binary Trees 🟠 Medium python
Merge Linked Lists πŸ”΄ Hard python
Merge Overlapping Intervals 🟠 Medium python
Merging Linked Lists 🟠 Medium python
Merge Sort 🟣 Very Hard python
Merge Sorted Arrays 🟣 Very Hard python
Min Heap Construction 🟠 Medium python
Min Height BST 🟠 Medium python
Min Max Stack Construction 🟠 Medium python
Min Number Of Coins For Change 🟠 Medium python
Min Number Of Jumps πŸ”΄ Hard python
Min Rewards πŸ”΄ Hard python
Minimum Area Rectangle 🟣 Very Hard python
Minimum Characters For Words 🟠 Medium python
Minimum Passes Of Matrix 🟠 Medium python
Minimum Waiting Time 🟒 Easy python
Monotonic Array 🟠 Medium python
Move Element To End 🟠 Medium python
Next Greater Element 🟠 Medium python
Node Depths 🟒 Easy python
Node Swap 🟣 Very Hard python
Non-Attacking Queens 🟣 Very Hard python
Non Constructible Change 🟒 Easy python
Nth-Fibonacci 🟒 Easy python
Number Of Ways To Make Change 🟠 Medium python
Number Of Ways To Traverse Graph 🟠 Medium python
Numbers In Pi 🟠 Medium python
One Edit 🟠 Medium python
Palindrome Check 🟒 Easy python
Permutations 🟠 Medium python
Product Sum 🟒 Easy python
Quickselect πŸ”΄ Hard python
Reconstruct BST 🟠 Medium python
Rectangle Mania 🟣 Very Hard python
Remove Duplicates From Linked List 🟒 Easy python
Remove Islands 🟠 Medium python
Remove Kth Node From End 🟠 Medium python
Reverse Linked List πŸ”΄ Hard python
Reverse Words In String 🟠 Medium python
Right Smaller Than 🟣 Very Hard python
Run-Length Encoding 🟒 Easy python
Selection Sort 🟒 Easy python
Semordnilap 🟒 Easy python
Smallest Difference 🟠 Medium python
Smallest Substring Containing 🟣 Very Hard python
Square Of Zeroes 🟣 Very Hard python
Sort Stack 🟠 Medium python
Sorted Squared Array 🟒 Easy python
Spiral Traverse 🟠 Medium python
Stable Internships 🟠 Medium python
Sum Of Linked Lists 🟠 Medium python
Sunset Views 🟠 Medium python
Tandem Bicycle 🟒 Easy python
Task Assignment 🟠 Medium python
Three Number Sort 🟠 Medium python
Three Number Sum 🟠 Medium python
Topological Sort πŸ”΄ Hard python
Tournament Winner 🟒 Easy python
Two Colorable 🟠 Medium python
Two Number Sum 🟒 Easy python
Union Find 🟠 Medium python
Valid Ip Addresses 🟠 Medium python
Valid Starting City 🟠 Medium python
Validate BST 🟠 Medium python
Validate Subsequence 🟒 Easy python
Waterfall Streams 🟣 Very Hard python
Zero Sum Subarray 🟠 Medium python
Zip Linked List 🟣 Very Hard python

πŸ” Back to Top πŸ”

HackerRank problems

First column links to the problem in HackerRank, second is the problem's difficulty, in descending order, the last column links to solutions in this repository.

πŸ” Back to Top πŸ”

HackerRank Link Difficulty Solutions
Diagonal Difference 🟒 Easy python
Java Deque 🟠 Medium java
Java Priority Queue 🟠 Medium java
Merge Tools 🟠 Medium python
Mini Max Sum 🟒 Easy python
Phone Book JAVA MAP 🟒 Easy java
Plus Minus 🟒 Easy python
Runner-Up Score! 🟒 Easy python

πŸ” Back to Top πŸ”

coding-challenges's People

Contributors

ajaypandey98 avatar anuj882 avatar pandeyriya08 avatar raul-sauco avatar

Stargazers

 avatar

Watchers

 avatar

coding-challenges's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.