How om-lathigara/leetcode works
This repository is a collection of independent C++ solutions to LeetCode problems, not a single application. For each solution, an external judge supplies problem input, invokes that solution, and receives its result; the solutions do not form a shared runtime pipeline. The graph groups the implementations by problem domain. Source excerpts show algorithm behavior, but do not show the judge integration, so those invocation and return relationships are marked unverified.
Components 30
Arrays and selection
- Two Sum
1-two-sum/code.cpp - Running Sum
1603-running-sum-of-1d-array/code.cpp - Customer Wealth
1791-richest-customer-wealth/code.cpp - Stock Profit
122-best-time-to-buy-and-sell-stock-ii/best-time-to-buy-and-sell-stock-ii.cpp - Majority Element
169-majority-element/majority-element.cpp - Maximum Subarray
53-maximum-subarray/maximum-subarray.cpp - Kth Largest
215-kth-largest-element-in-an-array/kth-largest-element-in-an-array.cpp - Sort Array
948-sort-an-array/sort-an-array.cpp - Missing Number
268-missing-number/missing-number.cpp - Merge Sorted Array
88-merge-sorted-array/merge-sorted-array.cpp - Two Sum
1-two-sum/code.cpp
Linked lists
- Merge Sorted Lists
21-merge-two-sorted-lists/merge-two-sorted-lists.cpp - Deduplicate List
83-remove-duplicates-from-sorted-list/remove-duplicates-from-sorted-list.cpp - Remove List Elements
203-remove-linked-list-elements - Middle List Node
908-middle-of-the-linked-list
Tree construction
- List to BST
109-convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.cpp - Array to BST
108-convert-sorted-array-to-binary-search-tree/code.cpp
Strings and numbers
- Longest Nice Substring
1873-longest-nice-substring/longest-nice-substring.cpp - Add Binary
67-add-binary/add-binary.cpp - Fizz Buzz
412-fizz-buzz/fizz-buzz.cpp - Reverse Integer
7-reverse-integer/reverse-integer.cpp - Palindrome Number
9-palindrome-number/palindrome-number.cpp - Reverse Bits
190-reverse-bits/reverse-bits.cpp - Number of 1 Bits
191-number-of-1-bits/number-of-1-bits.cpp - Power of Two
231-power-of-two/power-of-two.cpp - Number Complement
476-number-complement/number-complement.cpp - Integer to Hex
405-convert-a-number-to-hexadecimal/convert-a-number-to-hexadecimal.cpp - Perfect Number
507-perfect-number/perfect-number.cpp - Alternating Digit Sum
2630-alternating-digit-sum/alternating-digit-sum.cpp
Other components
- External judge