Skip to content

SohamS710/Leetcode_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode_solutions

A collection of my leetcode solutions in C++/C.

LeetCode Topics

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0025-reverse-nodes-in-k-group
0061-rotate-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0147-insertion-sort-list
0148-sort-list
0160-intersection-of-two-linked-lists
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0328-odd-even-linked-list
0908-middle-of-the-linked-list

Sorting

0147-insertion-sort-list
0148-sort-list

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0025-reverse-nodes-in-k-group
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list

Array

0001-two-sum
0027-remove-element
0130-surrounded-regions
0200-number-of-islands
0283-move-zeroes
0733-flood-fill
0854-making-a-large-island
1036-rotting-oranges
1039-find-the-town-judge
1050-construct-binary-search-tree-from-preorder-traversal
1781-check-if-two-string-arrays-are-equivalent
2035-count-sub-islands

Two Pointers

0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0061-rotate-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0148-sort-list
0160-intersection-of-two-linked-lists
0234-palindrome-linked-list
0283-move-zeroes
0908-middle-of-the-linked-list

Hash Table

0001-two-sum
0127-word-ladder
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
1039-find-the-town-judge

Stack

0020-valid-parentheses
0234-palindrome-linked-list
1050-construct-binary-search-tree-from-preorder-traversal
1078-remove-outermost-parentheses

Math

0002-add-two-numbers

Divide and Conquer

0148-sort-list

Merge Sort

0148-sort-list

String

0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0127-word-ladder
1078-remove-outermost-parentheses
1781-check-if-two-string-arrays-are-equivalent

Tree

0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0662-maximum-width-of-binary-tree
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
1050-construct-binary-search-tree-from-preorder-traversal

Depth-First Search

0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0130-surrounded-regions
0200-number-of-islands
0235-lowest-common-ancestor-of-a-binary-search-tree
0332-reconstruct-itinerary
0662-maximum-width-of-binary-tree
0733-flood-fill
0854-making-a-large-island
2035-count-sub-islands
2121-find-if-path-exists-in-graph

Binary Search Tree

0098-validate-binary-search-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
1050-construct-binary-search-tree-from-preorder-traversal

Binary Tree

0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0662-maximum-width-of-binary-tree
0783-search-in-a-binary-search-tree
0784-insert-into-a-binary-search-tree
1050-construct-binary-search-tree-from-preorder-traversal

Breadth-First Search

0104-maximum-depth-of-binary-tree
0127-word-ladder
0130-surrounded-regions
0200-number-of-islands
0662-maximum-width-of-binary-tree
0733-flood-fill
0854-making-a-large-island
1036-rotting-oranges
2035-count-sub-islands
2121-find-if-path-exists-in-graph

Matrix

0130-surrounded-regions
0200-number-of-islands
0733-flood-fill
0854-making-a-large-island
1036-rotting-oranges
2035-count-sub-islands

Union Find

0130-surrounded-regions
0200-number-of-islands
0854-making-a-large-island
2035-count-sub-islands
2121-find-if-path-exists-in-graph

Graph

0332-reconstruct-itinerary
1039-find-the-town-judge
2121-find-if-path-exists-in-graph

Database

1908-recyclable-and-low-fat-products

Eulerian Circuit

0332-reconstruct-itinerary

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Dynamic Programming

0124-binary-tree-maximum-path-sum

Monotonic Stack

1050-construct-binary-search-tree-from-preorder-traversal

About

A collection of my leetcode solutions in C++/C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published