This repository contains my solutions to various problems I have solved on LeetCode. Each solution is accompanied by the problem statement and is implemented in an optimized manner.
Each problem is categorized based on DSA / SQL.
The solutions are implemented in Java for DSA and SQL for database related problems.
Every solution includes a well-structured explanation and comments.
Clone the repository:
git clone https://github.com/tejasvi001/LeetcodeProblemsSolved.git
Navigate to the required topic folder.
Open the problem file to see the solution and explanation.
0014-longest-common-prefix |
0139-word-break |
0208-implement-trie-prefix-tree |
0028-find-the-index-of-the-first-occurrence-in-a-string |
0572-subtree-of-another-tree |
0812-rotate-string |
0070-climbing-stairs |
0139-word-break |
1013-fibonacci-number |
3140-count-visited-nodes-in-a-directed-graph |
0258-add-digits |
2722-prime-in-diagonal |
0042-trapping-rain-water |
0084-largest-rectangle-in-histogram |
0496-next-greater-element-i |
0503-next-greater-element-ii |
0937-online-stock-span |
0003-longest-substring-without-repeating-characters |
0239-sliding-window-maximum |
0643-maximum-average-subarray-i |
1567-maximum-number-of-vowels-in-a-substring-of-given-length |
0225-implement-stack-using-queues |
0232-implement-queue-using-stacks |
0239-sliding-window-maximum |
0860-design-circular-queue |
0954-maximum-sum-circular-subarray |
0969-number-of-recent-calls |
0295-find-median-from-data-stream |
0789-kth-largest-element-in-a-stream |
0937-online-stock-span |
0969-number-of-recent-calls |
0374-guess-number-higher-or-lower |
0169-majority-element |
0229-majority-element-ii |
0347-top-k-frequent-elements |
1510-find-lucky-integer-in-an-array |
2331-intersection-of-multiple-arrays |
0239-sliding-window-maximum |
0954-maximum-sum-circular-subarray |
0572-subtree-of-another-tree |
0816-design-hashset |
0817-design-hashmap |
0215-kth-largest-element-in-an-array |
0347-top-k-frequent-elements |
1860-find-kth-largest-xor-coordinate-value |
2113-find-the-kth-largest-integer-in-the-array |
0347-top-k-frequent-elements |
0023-merge-k-sorted-lists |
0148-sort-list |
0875-longest-mountain-in-array |
0207-course-schedule |
0210-course-schedule-ii |
0801-is-graph-bipartite |
2121-find-if-path-exists-in-graph |
3140-count-visited-nodes-in-a-directed-graph |
3838-path-existence-queries-in-a-graph-i |
0801-is-graph-bipartite |
2121-find-if-path-exists-in-graph |
3838-path-existence-queries-in-a-graph-i |
0207-course-schedule |
0210-course-schedule-ii |