https://github.com/isopropylcyanide/competitive-programming
Collection of all competitive code snippets
https://github.com/isopropylcyanide/competitive-programming
c challenge codechef codechef-solutions competettive-programming cpp hackerrank hackerrank-solutions java javascript leetcode leetcode-solutions multi-language python
Last synced: 13 days ago
JSON representation
Collection of all competitive code snippets
- Host: GitHub
- URL: https://github.com/isopropylcyanide/competitive-programming
- Owner: isopropylcyanide
- Created: 2015-12-31T07:54:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T11:30:21.000Z (over 2 years ago)
- Last Synced: 2025-05-03T07:37:13.384Z (about 2 months ago)
- Topics: c, challenge, codechef, codechef-solutions, competettive-programming, cpp, hackerrank, hackerrank-solutions, java, javascript, leetcode, leetcode-solutions, multi-language, python
- Language: C++
- Homepage:
- Size: 1.61 MB
- Stars: 22
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### What is it?
A collection of some programs under competetive programming competitions like `Hackerrank`, `CodeChef`, `SpoJ` and `Leetcode` etc.
---
#### Your code has poor documentation
This repository has working programs that were submitted during competitions as it is. As such they lack comments and proper documentation. However, you can use it as follows.
- Say, you want to look for sieve of eratosthenes's code snippet. Just search in the repo.
- If you want the implementation of the range min-max segment tree, just search segment-tree
- File names usually correspond to the problem title they refer to. So you can search by that.
- Solutions are grouped by languages.---
#### Who is this for
- Budding programmers delving into the world of competitive programming wanting to see the code in action.
- Myself, to keep on solving problems at all stages of my life.---
# Questions by Companies
| **#** | **Title** | **Acceptance** | **Difficulty** | **Finished** |
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ------------------ |
| 1 | [Two Sum ](https://leetcode.com/problems/two-sum) | 45.50% | **Easy** | :white_check_mark: |
| 560 | [Subarray Sum Equals K ](https://leetcode.com/problems/subarray-sum-equals-k) | 43.90% | **Medium** | :white_check_mark: |
| 68 | [Text Justification ](https://leetcode.com/problems/text-justification) | 27.50% | **Hard** | :white_check_mark: |
| 253 | [Meeting Rooms II ](https://leetcode.com/problems/meeting-rooms-ii) | 45.60% | **Medium** |
| 76 | [Minimum Window Substring ](https://leetcode.com/problems/minimum-window-substring) | 34.40% | **Hard** | :white_check_mark: |
| 85 | [Maximal Rectangle ](https://leetcode.com/problems/maximal-rectangle) | 37.40% | **Hard** |
| 221 | [Maximal Square ](https://leetcode.com/problems/maximal-square) | 37.60% | **Medium** |
| 127 | [Word Ladder ](https://leetcode.com/problems/word-ladder) | 29.20% | **Medium** | :white_check_mark: |
| 295 | [Find Median from Data Stream ](https://leetcode.com/problems/find-median-from-data-stream) | 43.90% | **Hard** | :white_check_mark: |
| 394 | [Decode String ](https://leetcode.com/problems/decode-string) | 49.60% | **Medium** |
| 362 | [Design Hit Counter ](https://leetcode.com/problems/design-hit-counter) | 63.40% | **Medium** |
| 528 | [Random Pick with Weight ](https://leetcode.com/problems/random-pick-with-weight) | 43.90% | **Medium** |
| 843 | [Guess the Word ](https://leetcode.com/problems/guess-the-word) | 46.00% | **Hard** |
| 1048 | [Longest String Chain ](https://leetcode.com/problems/longest-string-chain) | 54.50% | **Medium** |
| 329 | [Longest Increasing Path in a Matrix ](https://leetcode.com/problems/longest-increasing-path-in-a-matrix) | 43.20% | **Hard** | :white_check_mark: |
| 315 | [Count of Smaller Numbers After Self ](https://leetcode.com/problems/count-of-smaller-numbers-after-self) | 41.40% | **Hard** |
| 642 | [Design Search Autocomplete System ](https://leetcode.com/problems/design-search-autocomplete-system) | 44.40% | **Hard** |
| 410 | [Split Array Largest Sum ](https://leetcode.com/problems/split-array-largest-sum) | 44.40% | **Hard** |
| 359 | [Logger Rate Limiter ](https://leetcode.com/problems/logger-rate-limiter) | 70.30% | **Easy** | :white_check_mark: |
| 593 | [Valid Square ](https://leetcode.com/problems/valid-square) | 42.90% | **Medium** |
| 946 | [Validate Stack Sequences ](https://leetcode.com/problems/validate-stack-sequences) | 61.40% | **Medium** |
| 1153 | [String Transforms Into Another String ](https://leetcode.com/problems/string-transforms-into-another-string) | 35.90% | **Hard** |
| 727 | [Minimum Window Subsequence ](https://leetcode.com/problems/minimum-window-subsequence) | 41.50% | **Hard** | :white_check_mark: |
| 399 | [Evaluate Division ](https://leetcode.com/problems/evaluate-division) | 51.30% | **Medium** |
| 1110 | [Delete Nodes And Return Forest ](https://leetcode.com/problems/delete-nodes-and-return-forest) | 66.70% | **Medium** |
| 722 | [Remove Comments ](https://leetcode.com/problems/remove-comments) | 34.30% | **Medium** |
| 809 | [Expressive Words ](https://leetcode.com/problems/expressive-words) | 47.20% | **Medium** |
| 729 | [My Calendar I ](https://leetcode.com/problems/my-calendar-i) | 51.50% | **Medium** |
| 1031 | [Maximum Sum of Two Non-Overlapping Subarrays ](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays) | 57.70% | **Medium** |
| 752 | [Open the Lock ](https://leetcode.com/problems/open-the-lock) | 51.50% | **Medium** |
| 679 | [24 Game ](https://leetcode.com/problems/24-game) | 46.10% | **Hard** |
| 489 | [Robot Room Cleaner ](https://leetcode.com/problems/robot-room-cleaner) | 69.40% | **Hard** |
| 1146 | [Snapshot Array ](https://leetcode.com/problems/snapshot-array) | 37.00% | **Medium** |
| 862 | [Shortest Subarray with Sum at Least K ](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k) | 24.40% | **Hard** |
| 846 | [Hand of Straights ](https://leetcode.com/problems/hand-of-straights) | 53.90% | **Medium** |
| 659 | [Split Array into Consecutive Subsequences ](https://leetcode.com/problems/split-array-into-consecutive-subsequences) | 43.60% | **Medium** |
| 346 | [Moving Average from Data Stream ](https://leetcode.com/problems/moving-average-from-data-stream) | 70.70% | **Easy** |
| 1438 | [Longest Continuous Subarray With Abs Diff <= Limit ](https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) | 42.60% | **Medium** | :white_check_mark: |
| 1088 | [Confusing Number II ](https://leetcode.com/problems/confusing-number-ii) | 43.50% | **Hard** | :white_check_mark: |
| 299 | [Bulls and Cows ](https://leetcode.com/problems/bulls-and-cows) | 42.30% | **Easy** |
| 951 | [Flip Equivalent Binary Trees ](https://leetcode.com/problems/flip-equivalent-binary-trees) | 65.70% | **Medium** |
| 1376 | [Time Needed to Inform All Employees ](https://leetcode.com/problems/time-needed-to-inform-all-employees) | 55.20% | **Medium** | :white_check_mark: |
| 1231 | [Divide Chocolate ](https://leetcode.com/problems/divide-chocolate) | 52.20% | **Hard** |
| 1296 | [Divide Array in Sets of K Consecutive Numbers ](https://leetcode.com/problems/divide-array-in-sets-of-k-consecutive-numbers) | 53.20% | **Medium** |
| 375 | [Guess Number Higher or Lower II ](https://leetcode.com/problems/guess-number-higher-or-lower-ii) | 40.20% | **Medium** | :white_check_mark: |
| 1140 | [Stone Game II ](https://leetcode.com/problems/stone-game-ii) | 62.80% | **Medium** |
| 1423 | [Maximum Points You Can Obtain from Cards ](https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards) | 41.30% | **Medium** |
| 833 | [Find And Replace in String ](https://leetcode.com/problems/find-and-replace-in-string) | 50.30% | **Medium** |
| 1345 | [Jump Game IV ](https://leetcode.com/problems/jump-game-iv) | 37.40% | **Hard** |
| 1463 | [Cherry Pickup II ](https://leetcode.com/problems/cherry-pickup-ii) | 64.50% | **Hard** |## Amazon
| **#** | **Title** | **Acceptance** | **Difficulty** | **Finished** |
| ----- | ----------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ------------------ |
| 1 | [Two Sum ](https://leetcode.com/problems/two-sum) | 45.50% | **Easy** | :white_check_mark: |
| 200 | [Number of Islands ](https://leetcode.com/problems/number-of-islands) | 46.50% | **Medium** | :white_check_mark: |
| 2 | [Add Two Numbers ](https://leetcode.com/problems/add-two-numbers) | 33.70% | **Medium** |
| 937 | [Reorder Data in Log Files ](https://leetcode.com/problems/reorder-data-in-log-files) | 54.30% | **Easy** |
| 42 | [Trapping Rain Water ](https://leetcode.com/problems/trapping-rain-water) | 48.50% | **Hard** | :white_check_mark: |
| 146 | [LRU Cache ](https://leetcode.com/problems/lru-cache) | 32.80% | **Medium** | :white_check_mark: |
| 5 | [Longest Palindromic Substring ](https://leetcode.com/problems/longest-palindromic-substring) | 29.30% | **Medium** | :white_check_mark: |
| 23 | [Merge k Sorted Lists ](https://leetcode.com/problems/merge-k-sorted-lists) | 39.90% | **Hard** | :white_check_mark: |
| 1192 | [Critical Connections in a Network ](https://leetcode.com/problems/critical-connections-in-a-network) | 48.60% | **Hard** |
| 21 | [Merge Two Sorted Lists ](https://leetcode.com/problems/merge-two-sorted-lists) | 53.20% | **Easy** |
| 994 | [Rotting Oranges ](https://leetcode.com/problems/rotting-oranges) | 47.60% | **Medium** |
| 56 | [Merge Intervals ](https://leetcode.com/problems/merge-intervals) | 39.10% | **Medium** | :white_check_mark: |
| 273 | [Integer to English Words ](https://leetcode.com/problems/integer-to-english-words) | 26.90% | **Hard** | :white_check_mark: |
| 121 | [Best Time to Buy and Sell Stock ](https://leetcode.com/problems/best-time-to-buy-and-sell-stock) | 50.30% | **Easy** |
| 692 | [Top K Frequent Words ](https://leetcode.com/problems/top-k-frequent-words) | 51.50% | **Medium** |
| 269 | [Alien Dictionary ](https://leetcode.com/problems/alien-dictionary) | 33.30% | **Hard** |
| 973 | [K Closest Points to Origin ](https://leetcode.com/problems/k-closest-points-to-origin) | 63.60% | **Medium** |
| 139 | [Word Break ](https://leetcode.com/problems/word-break) | 39.80% | **Medium** |
| 253 | [Meeting Rooms II ](https://leetcode.com/problems/meeting-rooms-ii) | 45.60% | **Medium** |
| 297 | [Serialize and Deserialize Binary Tree ](https://leetcode.com/problems/serialize-and-deserialize-binary-tree) | 47.10% | **Hard** |
| 49 | [Group Anagrams ](https://leetcode.com/problems/group-anagrams) | 56.40% | **Medium** | :white_check_mark: |
| 763 | [Partition Labels ](https://leetcode.com/problems/partition-labels) | 75.60% | **Medium** |
| 127 | [Word Ladder ](https://leetcode.com/problems/word-ladder) | 29.20% | **Medium** | :white_check_mark: |
| 138 | [Copy List with Random Pointer ](https://leetcode.com/problems/copy-list-with-random-pointer) | 35.80% | **Medium** |
| 295 | [Find Median from Data Stream ](https://leetcode.com/problems/find-median-from-data-stream) | 43.90% | **Hard** |
| 140 | [Word Break II ](https://leetcode.com/problems/word-break-ii) | 31.50% | **Hard** |
| 227 | [Basic Calculator II ](https://leetcode.com/problems/basic-calculator-ii) | 36.70% | **Medium** | :white_check_mark: |
| 79 | [Word Search ](https://leetcode.com/problems/word-search) | 34.90% | **Medium** |
| 588 | [Design In-Memory File System ](https://leetcode.com/problems/design-in-memory-file-system) | 45.30% | **Hard** | :white_check_mark: |
| 460 | [LFU Cache ](https://leetcode.com/problems/lfu-cache) | 33.90% | **Hard** | :white_check_mark: |
| 239 | [Sliding Window Maximum ](https://leetcode.com/problems/sliding-window-maximum) | 42.80% | **Hard** | :white_check_mark: |
| 348 | [Design Tic-Tac-Toe ](https://leetcode.com/problems/design-tic-tac-toe) | 54.00% | **Medium** |
| 472 | [Concatenated Words ](https://leetcode.com/problems/concatenated-words) | 43.30% | **Hard** |
| 1152 | [Analyze User Website Visit Pattern ](https://leetcode.com/problems/analyze-user-website-visit-pattern) | 43.60% | **Medium** |
| 819 | [Most Common Word ](https://leetcode.com/problems/most-common-word) | 44.60% | **Easy** |
| 211 | [Add and Search Word - Data structure design ](https://leetcode.com/problems/add-and-search-word-data-structure-design) | 36.60% | **Medium** |
| 126 | [Word Ladder II ](https://leetcode.com/problems/word-ladder-ii) | 21.90% | **Hard** |
| 240 | [Search a 2D Matrix II ](https://leetcode.com/problems/search-a-2d-matrix-ii) | 43.10% | **Medium** |
| 210 | [Course Schedule II ](https://leetcode.com/problems/course-schedule-ii) | 39.70% | **Medium** | :white_check_mark: |
| 642 | [Design Search Autocomplete System ](https://leetcode.com/problems/design-search-autocomplete-system) | 44.40% | **Hard** |
| 480 | [Sliding Window Median ](https://leetcode.com/problems/sliding-window-median) | 37.00% | **Hard** |
| 863 | [All Nodes Distance K in Binary Tree ](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree) | 55.00% | **Medium** |
| 733 | [Flood Fill ](https://leetcode.com/problems/flood-fill) | 55.10% | **Easy** |
| 353 | [Design Snake Game ](https://leetcode.com/problems/design-snake-game) | 33.90% | **Medium** |
| 694 | [Number of Distinct Islands ](https://leetcode.com/problems/number-of-distinct-islands) | 55.70% | **Medium** |
| 909 | [Snakes and Ladders ](https://leetcode.com/problems/snakes-and-ladders) | 38.30% | **Medium** |
| 564 | [Find the Closest Palindrome ](https://leetcode.com/problems/find-the-closest-palindrome) | 19.60% | **Hard** |
| 1268 | [Search Suggestions System ](https://leetcode.com/problems/search-suggestions-system) | 63.30% | **Medium** |
| 1167 | [Minimum Cost to Connect Sticks ](https://leetcode.com/problems/minimum-cost-to-connect-sticks) | 62.60% | **Medium** |
| 726 | [Number of Atoms ](https://leetcode.com/problems/number-of-atoms) | 48.50% | **Hard** || **#** | **Title** | **Acceptance** | **Difficulty** | **Finished** |
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ------------------ |
| 23 | [Merge k Sorted Lists ](https://leetcode.com/problems/merge-k-sorted-lists) | 39.90% | **Hard** | :white_check_mark: |
| 238 | [Product of Array Except Self ](https://leetcode.com/problems/product-of-array-except-self) | 59.90% | **Medium** | :white_check_mark: |
| 56 | [Merge Intervals ](https://leetcode.com/problems/merge-intervals) | 39.10% | **Medium** | :white_check_mark: |
| 273 | [Integer to English Words ](https://leetcode.com/problems/integer-to-english-words) | 26.90% | **Hard** | :white_check_mark: |
| 953 | [Verifying an Alien Dictionary ](https://leetcode.com/problems/verifying-an-alien-dictionary) | 54.30% | **Easy** |
| 560 | [Subarray Sum Equals K ](https://leetcode.com/problems/subarray-sum-equals-k) | 43.90% | **Medium** |
| 1249 | [Minimum Remove to Make Valid Parentheses ](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses) | 62.40% | **Medium** | :white_check_mark: |
| 269 | [Alien Dictionary ](https://leetcode.com/problems/alien-dictionary) | 33.30% | **Hard** |
| 973 | [K Closest Points to Origin ](https://leetcode.com/problems/k-closest-points-to-origin) | 63.60% | **Medium** |
| 31 | [Next Permutation ](https://leetcode.com/problems/next-permutation) | 32.50% | **Medium** | :white_check_mark: |
| 415 | [Add Strings ](https://leetcode.com/problems/add-strings) | 47.30% | **Easy** |
| 297 | [Serialize and Deserialize Binary Tree ](https://leetcode.com/problems/serialize-and-deserialize-binary-tree) | 47.10% | **Hard** |
| 88 | [Merge Sorted Array ](https://leetcode.com/problems/merge-sorted-array) | 39.20% | **Easy** |
| 215 | [Kth Largest Element in an Array ](https://leetcode.com/problems/kth-largest-element-in-an-array) | 54.90% | **Medium** |
| 199 | [Binary Tree Right Side View ](https://leetcode.com/problems/binary-tree-right-side-view) | 53.70% | **Medium** |
| 124 | [Binary Tree Maximum Path Sum ](https://leetcode.com/problems/binary-tree-maximum-path-sum) | 34.10% | **Hard** | :white_check_mark: |
| 680 | [Valid Palindrome II ](https://leetcode.com/problems/valid-palindrome-ii) | 36.50% | **Easy** |
| 301 | [Remove Invalid Parentheses ](https://leetcode.com/problems/remove-invalid-parentheses) | 43.10% | **Hard** |
| 986 | [Interval List Intersections ](https://leetcode.com/problems/interval-list-intersections) | 67.20% | **Medium** |
| 173 | [Binary Search Tree Iterator ](https://leetcode.com/problems/binary-search-tree-iterator) | 56.10% | **Medium** |
| 987 | [Vertical Order Traversal of a Binary Tree ](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree) | 35.40% | **Hard** | :white_check_mark: |
| 236 | [Lowest Common Ancestor of a Binary Tree ](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree) | 45.20% | **Medium** | :white_check_mark: |
| 67 | [Add Binary ](https://leetcode.com/problems/add-binary) | 44.10% | **Easy** |
| 543 | [Diameter of Binary Tree ](https://leetcode.com/problems/diameter-of-binary-tree) | 48.30% | **Easy** |
| 528 | [Random Pick with Weight ](https://leetcode.com/problems/random-pick-with-weight) | 43.90% | **Medium** |
| 438 | [Find All Anagrams in a String ](https://leetcode.com/problems/find-all-anagrams-in-a-string) | 43.00% | **Medium** | :white_check_mark: |
| 767 | [Reorganize String ](https://leetcode.com/problems/reorganize-string) | 48.30% | **Medium** |
| 211 | [Add and Search Word - Data structure design ](https://leetcode.com/problems/add-and-search-word-data-structure-design) | 36.60% | **Medium** |
| 158 | [Read N Characters Given Read4 II - Call multiple times ](https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times) | 33.30% | **Hard** |
| 125 | [Valid Palindrome ](https://leetcode.com/problems/valid-palindrome) | 35.80% | **Easy** |
| 636 | [Exclusive Time of Functions ](https://leetcode.com/problems/exclusive-time-of-functions) | 51.80% | **Medium** | :white_check_mark: |
| 340 | [Longest Substring with At Most K Distinct Characters ](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters) | 43.90% | **Hard** | :white_check_mark: |
| 621 | [Task Scheduler ](https://leetcode.com/problems/task-scheduler) | 48.60% | **Medium** |
| 311 | [Sparse Matrix Multiplication ](https://leetcode.com/problems/sparse-matrix-multiplication) | 61.50% | **Medium** |
| 523 | [Continuous Subarray Sum ](https://leetcode.com/problems/continuous-subarray-sum) | 24.60% | **Medium** |
| 65 | [Valid Number ](https://leetcode.com/problems/valid-number) | 15.20% | **Hard** |
| 278 | [First Bad Version ](https://leetcode.com/problems/first-bad-version) | 35.40% | **Easy** |
| 721 | [Accounts Merge ](https://leetcode.com/problems/accounts-merge) | 48.30% | **Medium** |
| 938 | [Range Sum of BST ](https://leetcode.com/problems/range-sum-of-bst) | 81.10% | **Easy** |
| 785 | [Is Graph Bipartite? ](https://leetcode.com/problems/is-graph-bipartite) | 47.20% | **Medium** |
| 282 | [Expression Add Operators ](https://leetcode.com/problems/expression-add-operators) | 35.40% | **Hard** |
| 270 | [Closest Binary Search Tree Value ](https://leetcode.com/problems/closest-binary-search-tree-value) | 47.80% | **Easy** |
| 1060 | [Missing Element in Sorted Array ](https://leetcode.com/problems/missing-element-in-sorted-array) | 54.40% | **Medium** |
| 670 | [Maximum Swap ](https://leetcode.com/problems/maximum-swap) | 43.30% | **Medium** |
| 249 | [Group Shifted Strings ](https://leetcode.com/problems/group-shifted-strings) | 54.50% | **Medium** |
| 1428 | [Leftmost Column with at Least a One ](https://leetcode.com/problems/leftmost-column-with-at-least-a-one) | 46.50% | **Medium** |
| 398 | [Random Pick Index ](https://leetcode.com/problems/random-pick-index) | 55.50% | **Medium** |
| 689 | [Maximum Sum of 3 Non-Overlapping Subarrays ](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays) | 46.00% | **Hard** |
| 896 | [Monotonic Array ](https://leetcode.com/problems/monotonic-array) | 57.70% | **Easy** |
| 1026 | [Maximum Difference Between Node and Ancestor ](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor) | 65.50% | **Medium** || **#** | **Title** | **Acceptance** | **Difficulty** | **Finished** |
| ----- | ------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ------------------ |
| 53 | [Maximum Subarray ](https://leetcode.com/problems/maximum-subarray) | 46.40% | **Easy** | :white_check_mark: |
| 297 | [Serialize and Deserialize Binary Tree ](https://leetcode.com/problems/serialize-and-deserialize-binary-tree) | 47.10% | **Hard** |
| 380 | [Insert Delete GetRandom O(1) ](https://leetcode.com/problems/insert-delete-getrandom-o1) | 47.40% | **Medium** |
| 127 | [Word Ladder ](https://leetcode.com/problems/word-ladder) | 29.20% | **Medium** | :white_check_mark: |
| 364 | [Nested List Weight Sum II ](https://leetcode.com/problems/nested-list-weight-sum-ii) | 62.60% | **Medium** |
| 150 | [Evaluate Reverse Polish Notation ](https://leetcode.com/problems/evaluate-reverse-polish-notation) | 36.10% | **Medium** |
| 102 | [Binary Tree Level Order Traversal ](https://leetcode.com/problems/binary-tree-level-order-traversal) | 54.20% | **Medium** |
| 698 | [Partition to K Equal Sum Subsets ](https://leetcode.com/problems/partition-to-k-equal-sum-subsets) | 45.00% | **Medium** |
| 101 | [Symmetric Tree ](https://leetcode.com/problems/symmetric-tree) | 46.60% | **Easy** |
| 339 | [Nested List Weight Sum ](https://leetcode.com/problems/nested-list-weight-sum) | 73.60% | **Easy** |
| 716 | [Max Stack ](https://leetcode.com/problems/max-stack) | 42.50% | **Easy** |
| 149 | [Max Points on a Line ](https://leetcode.com/problems/max-points-on-a-line) | 16.90% | **Hard** |
| 244 | [Shortest Word Distance II ](https://leetcode.com/problems/shortest-word-distance-ii) | 52.20% | **Medium** |
| 605 | [Can Place Flowers ](https://leetcode.com/problems/can-place-flowers) | 31.60% | **Easy** |
| 272 | [Closest Binary Search Tree Value II ](https://leetcode.com/problems/closest-binary-search-tree-value-ii) | 50.30% | **Hard** |
| 254 | [Factor Combinations ](https://leetcode.com/problems/factor-combinations) | 46.60% | **Medium** |
| 244 | [Shortest Word Distance II ](https://leetcode.com/problems/shortest-word-distance-ii) | 48.20% | **Medium** |
| 364 | [Nested List Weight Sum II ](https://leetcode.com/problems/nested-list-weight-sum-ii) | 58.40% | **Medium** |
| 170 | [Two Sum III - Data structure design ](https://leetcode.com/problems/two-sum-iii-data-structure-design) | 31.00% | **Easy** |
| 339 | [Nested List Weight Sum ](https://leetcode.com/problems/nested-list-weight-sum) | 69.00% | **Easy** |
| 272 | [Closest Binary Search Tree Value II ](https://leetcode.com/problems/closest-binary-search-tree-value-ii) | 45.80% | **Hard** |
| 156 | [Binary Tree Upside Down ](https://leetcode.com/problems/binary-tree-upside-down) | 51.60% | **Medium** |
| 256 | [Paint House ](https://leetcode.com/problems/paint-house) | 49.40% | **Easy** |
| 243 | [Shortest Word Distance ](https://leetcode.com/problems/shortest-word-distance) | 57.90% | **Easy** |
| 149 | [Max Points on a Line ](https://leetcode.com/problems/max-points-on-a-line) | 16.00% | **Hard** |
| 265 | [Paint House II ](https://leetcode.com/problems/paint-house-ii) | 42.00% | **Hard** |
| 65 | [Valid Number ](https://leetcode.com/problems/valid-number) | 14.20% | **Hard** |
| 716 | [Max Stack ](https://leetcode.com/problems/max-stack) | 40.40% | **Easy** |
| 254 | [Factor Combinations ](https://leetcode.com/problems/factor-combinations) | 44.70% | **Medium** |
| 380 | [Insert Delete GetRandom O(1) ](https://leetcode.com/problems/insert-delete-getrandom-o1) | 43.30% | **Medium** |
| 68 | [Text Justification ](https://leetcode.com/problems/text-justification) | 23.90% | **Hard** | :white_check_mark: |
| 366 | [Find Leaves of Binary Tree ](https://leetcode.com/problems/find-leaves-of-binary-tree) | 66.50% | **Medium** | :white_check_mark: |
| 605 | [Can Place Flowers ](https://leetcode.com/problems/can-place-flowers) | 31.10% | **Easy** |## Microsoft
| **#** | **Title** | **Acceptance** | **Difficulty** | **Finished** |
| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ------------------ |
| 1246 | [Palindrome Removal](https://leetcode.com/problems/palindrome-removal) | 45.90% | **Hard** |
| 1239 | [Maximum Length of a Concatenated String with Unique Characters](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters) | 47.60% | **Medium** |
| 273 | [Integer to English Words](https://leetcode.com/problems/integer-to-english-words) | 26.90% | **Hard** | :white_check_mark: |
| 428 | [Serialize and Deserialize N-ary Tree](https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree) | 59.00% | **Hard** |
| 146 | [LRU Cache](https://leetcode.com/problems/lru-cache) | 32.80% | **Medium** | :white_check_mark: |
| 1156 | [Swap For Longest Repeated Character Substring](https://leetcode.com/problems/swap-for-longest-repeated-character-substring) | 48.70% | **Medium** |
| 54 | [Spiral Matrix](https://leetcode.com/problems/spiral-matrix) | 33.90% | **Medium** |
| 212 | [Word Search II](https://leetcode.com/problems/word-search-ii) | 34.50% | **Hard** |
| 1236 | [Web Crawler](https://leetcode.com/problems/web-crawler) | 64.30% | **Medium** |
| 828 | [Count Unique Characters of All Substrings of a Given String](https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string) | 44.80% | **Hard** |
| 138 | [Copy List with Random Pointer](https://leetcode.com/problems/copy-list-with-random-pointer) | 35.80% | **Medium** |
| 545 | [Boundary of Binary Tree](https://leetcode.com/problems/boundary-of-binary-tree) | 38.90% | **Medium** |
| 25 | [Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group) | 41.70% | **Hard** |
| 348 | [Design Tic-Tac-Toe](https://leetcode.com/problems/design-tic-tac-toe) | 54.00% | **Medium** |
| 450 | [Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst) | 42.90% | **Medium** |
| 124 | [Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum) | 34.10% | **Hard** | :white_check_mark: |
| 340 | [Longest Substring with At Most K Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters) | 43.90% | **Hard** | :white_check_mark: |
| 218 | [The Skyline Problem](https://leetcode.com/problems/the-skyline-problem) | 34.40% | **Hard** |
| 200 | [Number of Islands](https://leetcode.com/problems/number-of-islands) | 46.50% | **Medium** | :white_check_mark: |
| 358 | [Rearrange String k Distance Apart](https://leetcode.com/problems/rearrange-string-k-distance-apart) | 34.70% | **Hard** |
| 1375 | [Bulb Switcher III](https://leetcode.com/problems/bulb-switcher-iii) | 62.10% | **Medium** |
| 99 | [Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree) | 39.30% | **Hard** |
| 468 | [Validate IP Address](https://leetcode.com/problems/validate-ip-address) | 24.00% | **Medium** |
| 116 | [Populating Next Right Pointers in Each Node](https://leetcode.com/problems/populating-next-right-pointers-in-each-node) | 44.60% | **Medium** |
| 41 | [First Missing Positive](https://leetcode.com/problems/first-missing-positive) | 31.80% | **Hard** | :white_check_mark: |
| 93 | [Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses) | 35.30% | **Medium** |
| 23 | [Merge k Sorted Lists](https://leetcode.com/problems/merge-k-sorted-lists) | 39.90% | **Hard** | :white_check_mark: |
| 103 | [Binary Tree Zigzag Level Order Traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal) | 47.00% | **Medium** |
| 232 | [Implement Queue using Stacks](https://leetcode.com/problems/implement-queue-using-stacks) | 49.10% | **Easy** |
| 1 | [Two Sum](https://leetcode.com/problems/two-sum) | 45.50% | **Easy** |
| 79 | [Word Search](https://leetcode.com/problems/word-search) | 34.90% | **Medium** |
| 1116 | [Print Zero Even Odd](https://leetcode.com/problems/print-zero-even-odd) | 55.70% | **Medium** |
| 297 | [Serialize and Deserialize Binary Tree](https://leetcode.com/problems/serialize-and-deserialize-binary-tree) | 47.10% | **Hard** |
| 4 | [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays) | 29.40% | **Hard** | :white_check_mark: |
| 134 | [Gas Station](https://leetcode.com/problems/gas-station) | 38.20% | **Medium** |
| 207 | [Course Schedule](https://leetcode.com/problems/course-schedule) | 42.80% | **Medium** | :white_check_mark: |
| 445 | [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii) | 54.30% | **Medium** |
| 105 | [Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal) | 48.20% | **Medium** |
| 42 | [Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water) | 48.50% | **Hard** | :white_check_mark: |
| 74 | [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix) | 36.40% | **Medium** |
| 151 | [Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string) | 21.10% | **Medium** |
| 102 | [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal) | 54.20% | **Medium** |
| 10 | [Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching) | 26.70% | **Hard** |
| 173 | [Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator) | 56.10% | **Medium** |
| 140 | [Word Break II](https://leetcode.com/problems/word-break-ii) | 31.50% | **Hard** |
| 443 | [String Compression](https://leetcode.com/problems/string-compression) | 41.00% | **Easy** |
| 8 | [String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi) | 15.30% | **Medium** |
| 148 | [Sort List](https://leetcode.com/problems/sort-list) | 41.80% | **Medium** | :white_check_mark: |
| 630 | [Course Schedule III](https://leetcode.com/problems/course-schedule-iii) | 33.30% | **Hard** |
| 155 | [Min Stack](https://leetcode.com/problems/min-stack) | 44.20% | **Easy** |
| 621 | [Task Scheduler](https://leetcode.com/problems/task-scheduler) | 48.60% | **Medium** |
| 432 | [All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure) | 32.20% | **Hard** |
| 285 | [Inorder Successor in BST](https://leetcode.com/problems/inorder-successor-in-bst) | 40.00% | **Medium** | :white_check_mark: |
| 240 | [Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii) | 43.10% | **Medium** |
| 636 | [Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions) | 51.80% | **Medium** | :white_check_mark: |
| 510 | [Inorder Successor in BST II](https://leetcode.com/problems/inorder-successor-in-bst-ii) | 57.90% | **Medium** | :white_check_mark: |
| 716 | [Max Stack](https://leetcode.com/problems/max-stack) | 42.50% | **Easy** |
| 179 | [Largest Number](https://leetcode.com/problems/largest-number) | 28.50% | **Medium** |
| 85 | [Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle) | 37.40% | **Hard** |
| 295 | [Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream) | 43.90% | **Hard** |
| 46 | [Permutations](https://leetcode.com/problems/permutations) | 63.00% | **Medium** |
| 133 | [Clone Graph](https://leetcode.com/problems/clone-graph) | 34.20% | **Medium** |
| 89 | [Gray Code](https://leetcode.com/problems/gray-code) | 48.90% | **Medium** |
| 622 | [Design Circular Queue](https://leetcode.com/problems/design-circular-queue) | 43.50% | **Medium** |
| 127 | [Word Ladder](https://leetcode.com/problems/word-ladder) | 29.20% | **Medium** | :white_check_mark: |
| 126 | [Word Ladder II](https://leetcode.com/problems/word-ladder-ii) | 21.90% | **Hard** |
| 37 | [Sudoku Solver](https://leetcode.com/problems/sudoku-solver) | 43.20% | **Hard** |
| 253 | [Meeting Rooms II](https://leetcode.com/problems/meeting-rooms-ii) | 45.60% | **Medium** |
| 236 | [Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree) | 45.20% | **Medium** | :white_check_mark: |
| 346 | [Moving Average from Data Stream](https://leetcode.com/problems/moving-average-from-data-stream) | 70.70% | **Easy** |
| 767 | [Reorganize String](https://leetcode.com/problems/reorganize-string) | 48.30% | **Medium** |
| 706 | [Design HashMap](https://leetcode.com/problems/design-hashmap) | 60.90% | **Easy** |
| 460 | [LFU Cache](https://leetcode.com/problems/lfu-cache) | 33.90% | **Hard** | :white_check_mark: |
| 277 | [Find the Celebrity](https://leetcode.com/problems/find-the-celebrity) | 41.60% | **Medium** |
| 419 | [Battleships in a Board](https://leetcode.com/problems/battleships-in-a-board) | 69.80% | **Medium** |
| 695 | [Max Area of Island](https://leetcode.com/problems/max-area-of-island) | 62.40% | **Medium** |
| 48 | [Rotate Image](https://leetcode.com/problems/rotate-image) | 56.20% | **Medium** |
| 722 | [Remove Comments](https://leetcode.com/problems/remove-comments) | 34.30% | **Medium** |
| 380 | [Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1) | 47.40% | **Medium** |
| 75 | [Sort Colors](https://leetcode.com/problems/sort-colors) | 47.10% | **Medium** | :white_check_mark: |
| 457 | [Circular Array Loop](https://leetcode.com/problems/circular-array-loop) | 29.20% | **Medium** |
| 557 | [Reverse Words in a String III](https://leetcode.com/problems/reverse-words-in-a-string-iii) | 69.50% | **Easy** |
| 49 | [Group Anagrams](https://leetcode.com/problems/group-anagrams) | 56.40% | **Medium** | :white_check_mark: |
| 98 | [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree) | 27.70% | **Medium** |
| 679 | [24 Game](https://leetcode.com/problems/24-game) | 46.10% | **Hard** |
| 1044 | [Longest Duplicate Substring](https://leetcode.com/problems/longest-duplicate-substring) | 32.00% | **Hard** |
| 950 | [Reveal Cards In Increasing Order](https://leetcode.com/problems/reveal-cards-in-increasing-order) | 74.30% | **Medium** |
| 128 | [Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence) | 44.90% | **Hard** |
| 56 | [Merge Intervals](https://leetcode.com/problems/merge-intervals) | 39.10% | **Medium** | :white_check_mark: |
| 43 | [Multiply Strings](https://leetcode.com/problems/multiply-strings) | 33.70% | **Medium** |
| 681 | [Next Closest Time](https://leetcode.com/problems/next-closest-time) | 44.90% | **Medium** |
| 1229 | [Meeting Scheduler](https://leetcode.com/problems/meeting-scheduler) | 52.30% | **Medium** |
| 149 | [Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line) | 16.90% | **Hard** | :white_check_mark: |
| 121 | [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock) | 50.30% | **Easy** |
| 21 | [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists) | 53.20% | **Easy** |
| 17 | [Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number) | 46.50% | **Medium** | :white_check_mark: |
| 24 | [Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs) | 50.00% | **Medium** |
| 33 | [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array) | 34.50% | **Medium** | :white_check_mark: |
| 773 | [Sliding Puzzle](https://leetcode.com/problems/sliding-puzzle) | 59.00% | **Hard** |
| 129 | [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers) | 48.70% | **Medium** |
| 238 | [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self) | 59.90% | **Medium** | :white_check_mark: |
| 77 | [Combinations](https://leetcode.com/problems/combinations) | 54.30% | **Medium** |
| 528 | [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight) | 43.90% | **Medium** |
| 53 | [Maximum Subarray](https://leetcode.com/problems/maximum-subarray) | 46.40% | **Easy** |---
#### Why is it even here
I like to share and showcase all facets of my professional career. Competitive programming is something I extensively did during my college days and I still give it a try whenever time permits.
As such this is a subtle reminder of my capabilites. I'd encourage others to do the same. The check box is motivation enough :)