Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Amanhacker/Aman-Barnwal-Leetcode-Solutions
/ functions
Functions
931 in github.com/Amanhacker/Aman-Barnwal-Leetcode-Solutions
⨍
Functions
931
◇
Types & classes
605
↓ 121 callers
Method
empty
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:48
↓ 91 callers
Method
push
716-max-stack/716-max-stack.cpp:10
↓ 65 callers
Method
pop
716-max-stack/716-max-stack.cpp:16
↓ 61 callers
Method
push
155-min-stack/155-min-stack.cpp:10
↓ 57 callers
Method
top
716-max-stack/716-max-stack.cpp:24
↓ 42 callers
Method
top
155-min-stack/155-min-stack.cpp:25
↓ 38 callers
Method
pop
155-min-stack/155-min-stack.cpp:18
↓ 36 callers
Method
find
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:17
↓ 22 callers
Method
insert
1656-design-an-ordered-stream/1656-design-an-ordered-stream.cpp:12
↓ 21 callers
Method
insert
0623-add-one-row-to-tree/0623-add-one-row-to-tree.cpp:15
↓ 15 callers
Method
push
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:11
↓ 13 callers
Method
pop
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:34
↓ 10 callers
Method
top
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:37
↓ 9 callers
Method
push
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:11
↓ 6 callers
Method
pop
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:17
↓ 5 callers
Method
pop
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:29
↓ 4 callers
Method
push
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:11
↓ 3 callers
Method
empty
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:43
↓ 2 callers
Method
add
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:11
↓ 1 callers
Method
LongestRepeatingSubsequence
Longest Repeating Subsequence - GFG/longest-repeating-subsequence.cpp:28
↓ 1 callers
Method
countWays
Boolean Parenthesization - GFG/boolean-parenthesization.cpp:65
↓ 1 callers
Method
equalPartition
Partition Equal Subset Sum - GFG/partition-equal-subset-sum.cpp:13
↓ 1 callers
Method
findTargetSumWays
Target Sum - GFG/target-sum.cpp:33
↓ 1 callers
Method
isSubsetSum
Subset Sum Problem - GFG/subset-sum-problem.cpp:13
↓ 1 callers
Method
knapSack
0 - 1 Knapsack Problem - GFG/0-1-knapsack-problem.cpp:31
↓ 1 callers
Method
lenOfLongSubarr
Longest Sub-Array with Sum K - GFG/longest-sub-array-with-sum-k.cpp:10
↓ 1 callers
Method
longestCommonSubstr
Longest Common Substring - GFG/longest-common-substring.cpp:10
↓ 1 callers
Method
longestKSubstr
Longest K unique characters substring - GFG/longest-k-unique-characters-substring.cpp:13
↓ 1 callers
Method
matrixMultiplication
Matrix Chain Multiplication - GFG/matrix-chain-multiplication.cpp:30
↓ 1 callers
Method
maximumSumSubarray
Max Sum Subarray of size K - GFG/max-sum-subarray-of-size-k.cpp:9
↓ 1 callers
Method
minDifference
Minimum sum partition - GFG/minimum-sum-partition.cpp:10
↓ 1 callers
Method
nearlySorted
Nearly sorted - GFG/nearly-sorted.cpp:12
↓ 1 callers
Method
peek
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:42
↓ 1 callers
Function
printFirstNegativeInteger
First negative integer in every window of size k - GFG/first-negative-integer-in-every-window-of-size-k.cpp:32
↓ 1 callers
Method
remove
706-design-hashmap/706-design-hashmap.cpp:20
↓ 1 callers
Method
search
Count Occurences of Anagrams - GFG/count-occurences-of-anagrams.cpp:12
↓ 1 callers
Method
subsetSums
Subset Sums - GFG/subset-sums.cpp:26
↓ 1 callers
Method
sumBetweenTwoKth
Sum of elements between k1'th and k2'th smallest elements - GFG/sum-of-elements-between-k1th-and-k2th-smallest-elements.cpp:9
Method
BSTIterator
173-binary-search-tree-iterator/173-binary-search-tree-iterator.cpp:29
Method
CombinationIterator
1286-iterator-for-combination/1286-iterator-for-combination.cpp:25
Method
CustomStack
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:7
Method
FindElements
1261-find-elements-in-a-contaminated-binary-tree/1261-find-elements-in-a-contaminated-binary-tree.cpp:30
Method
KthLargest
703-kth-largest-element-in-a-stream/703-kth-largest-element-in-a-stream.cpp:8
Method
Logger
359-logger-rate-limiter/359-logger-rate-limiter.cpp:6
Method
MRUQueue
1756-design-most-recently-used-queue/1756-design-most-recently-used-queue.cpp:6
Method
MaxStack
716-max-stack/716-max-stack.cpp:6
Method
MinStack
155-min-stack/155-min-stack.cpp:6
Method
MovingAverage
346-moving-average-from-data-stream/346-moving-average-from-data-stream.cpp:7
Method
MyHashMap
706-design-hashmap/706-design-hashmap.cpp:7
Method
MyQueue
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:6
Method
MyStack
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:6
Method
NQueen
51-n-queens/51-n-queens.cpp:27
Method
NumNode
1628-design-an-expression-tree-with-evaluate-function/1628-design-an-expression-tree-with-evaluate-function.cpp:25
Method
OpNode
1628-design-an-expression-tree-with-evaluate-function/1628-design-an-expression-tree-with-evaluate-function.cpp:40
Method
OrderedStream
1656-design-an-ordered-stream/1656-design-an-ordered-stream.cpp:7
Method
ParkingSystem
1603-design-parking-system/1603-design-parking-system.cpp:6
Method
ProductOfNumbers
1352-product-of-the-last-k-numbers/1352-product-of-the-last-k-numbers.cpp:9
Method
SeatManager
1845-seat-reservation-manager/1845-seat-reservation-manager.cpp:7
Method
Solution
382-linked-list-random-node/382-linked-list-random-node.cpp:17
Method
Solution
528-random-pick-with-weight/528-random-pick-with-weight.cpp:7
Method
SparseVector
1570-dot-product-of-two-sparse-vectors/1570-dot-product-of-two-sparse-vectors.cpp:7
Method
StringIterator
604-design-compressed-string-iterator/604-design-compressed-string-iterator.cpp:10
Method
TwoSum
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:6
Method
UndergroundSystem
1396-design-underground-system/1396-design-underground-system.cpp:9
Method
WordDictionary
0211-design-add-and-search-words-data-structure/0211-design-add-and-search-words-data-structure.cpp:6
Method
add
703-kth-largest-element-in-a-stream/703-kth-largest-element-in-a-stream.cpp:18
Method
add
1352-product-of-the-last-k-numbers/1352-product-of-the-last-k-numbers.cpp:13
Method
addBinary
67-add-binary/67-add-binary.cpp:4
Method
addCar
1603-design-parking-system/1603-design-parking-system.cpp:15
Method
addDigits
258-add-digits/258-add-digits.cpp:4
Method
addNodeAtBeginning
Add Node at Beginning of Linked List
445-add-two-numbers-ii/445-add-two-numbers-ii.cpp:34
Method
addNodeAtBeginning
25-reverse-nodes-in-k-group/25-reverse-nodes-in-k-group.cpp:14
Method
addNodeAtBeginning
148-sort-list/148-sort-list.cpp:14
Method
addNodeAtBeginning
23-merge-k-sorted-lists/23-merge-k-sorted-lists.cpp:14
Method
addNodeAtBeginning
92-reverse-linked-list-ii/92-reverse-linked-list-ii.cpp:14
Method
addNodeAtBeginning
86-partition-list/86-partition-list.cpp:14
Method
addNodeAtBeginning
147-insertion-sort-list/147-insertion-sort-list.cpp:14
Method
addNodeAtBeginning
0445-add-two-numbers-ii/0445-add-two-numbers-ii.cpp:14
Method
addNodeAtBeginning
21-merge-two-sorted-lists/21-merge-two-sorted-lists.cpp:16
Method
addNodeAtLast
It adds the node having value "data" at the end of Doubly Linked List
426-convert-binary-search-tree-to-sorted-doubly-linked-list/426-convert-binary-search-tree-to-sorted-doubly-linked-list.cpp:42
Method
addNodeAtLast
Add Node at Beginning of Linked List
2-add-two-numbers/2-add-two-numbers.cpp:15
Method
addOneRow
0623-add-one-row-to-tree/0623-add-one-row-to-tree.cpp:43
Method
addStrings
415-add-strings/415-add-strings.cpp:4
Method
addTwoNumbers
445-add-two-numbers-ii/445-add-two-numbers-ii.cpp:51
Method
addTwoNumbers
2-add-two-numbers/2-add-two-numbers.cpp:28
Method
addTwoNumbers
0445-add-two-numbers-ii/0445-add-two-numbers-ii.cpp:29
Method
addWord
0211-design-add-and-search-words-data-structure/0211-design-add-and-search-words-data-structure.cpp:10
Method
allCellsDistOrder
1030-matrix-cells-in-distance-order/1030-matrix-cells-in-distance-order.cpp:4
Method
allPathsSourceTarget
all-paths-from-source-to-target/all-paths-from-source-to-target.cpp:24
Method
allPathsSourceTarget
797-all-paths-from-source-to-target/797-all-paths-from-source-to-target.cpp:26
Method
allPossibleFBT
all-possible-full-binary-trees/all-possible-full-binary-trees.cpp:49
Method
amountOfTime
2385-amount-of-time-for-binary-tree-to-be-infected/2385-amount-of-time-for-binary-tree-to-be-infected.cpp:57
Method
anagramMappings
760-find-anagram-mappings/760-find-anagram-mappings.cpp:4
Method
areNumbersAscending
2042-check-if-numbers-are-ascending-in-a-sentence/2042-check-if-numbers-are-ascending-in-a-sentence.cpp:4
Method
areOccurrencesEqual
1941-check-if-all-characters-have-equal-number-of-occurrences/1941-check-if-all-characters-have-equal-number-of-occurrences.cpp:4
Method
areSentencesSimilar
734-sentence-similarity/734-sentence-similarity.cpp:4
Method
arraySign
1822-sign-of-the-product-of-an-array/1822-sign-of-the-product-of-an-array.cpp:4
Method
arraysIntersection
1213-intersection-of-three-sorted-arrays/1213-intersection-of-three-sorted-arrays.cpp:4
Method
averageOfLevels
637-average-of-levels-in-binary-tree/637-average-of-levels-in-binary-tree.cpp:47
Method
averageOfSubtree
2265-count-nodes-equal-to-average-of-subtree/2265-count-nodes-equal-to-average-of-subtree.cpp:37
next →
1–100 of 931, ranked by callers