MCPcopy Create free account

hub / github.com/Amanhacker/Aman-Barnwal-Leetcode-Solutions / functions

Functions931 in github.com/Amanhacker/Aman-Barnwal-Leetcode-Solutions

↓ 121 callersMethodempty
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:48
↓ 91 callersMethodpush
716-max-stack/716-max-stack.cpp:10
↓ 65 callersMethodpop
716-max-stack/716-max-stack.cpp:16
↓ 61 callersMethodpush
155-min-stack/155-min-stack.cpp:10
↓ 57 callersMethodtop
716-max-stack/716-max-stack.cpp:24
↓ 42 callersMethodtop
155-min-stack/155-min-stack.cpp:25
↓ 38 callersMethodpop
155-min-stack/155-min-stack.cpp:18
↓ 36 callersMethodfind
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:17
↓ 22 callersMethodinsert
1656-design-an-ordered-stream/1656-design-an-ordered-stream.cpp:12
↓ 21 callersMethodinsert
0623-add-one-row-to-tree/0623-add-one-row-to-tree.cpp:15
↓ 15 callersMethodpush
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:11
↓ 13 callersMethodpop
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:34
↓ 10 callersMethodtop
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:37
↓ 9 callersMethodpush
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:11
↓ 6 callersMethodpop
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:17
↓ 5 callersMethodpop
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:29
↓ 4 callersMethodpush
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:11
↓ 3 callersMethodempty
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:43
↓ 2 callersMethodadd
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:11
↓ 1 callersMethodLongestRepeatingSubsequence
Longest Repeating Subsequence - GFG/longest-repeating-subsequence.cpp:28
↓ 1 callersMethodcountWays
Boolean Parenthesization - GFG/boolean-parenthesization.cpp:65
↓ 1 callersMethodequalPartition
Partition Equal Subset Sum - GFG/partition-equal-subset-sum.cpp:13
↓ 1 callersMethodfindTargetSumWays
Target Sum - GFG/target-sum.cpp:33
↓ 1 callersMethodisSubsetSum
Subset Sum Problem - GFG/subset-sum-problem.cpp:13
↓ 1 callersMethodknapSack
0 - 1 Knapsack Problem - GFG/0-1-knapsack-problem.cpp:31
↓ 1 callersMethodlenOfLongSubarr
Longest Sub-Array with Sum K - GFG/longest-sub-array-with-sum-k.cpp:10
↓ 1 callersMethodlongestCommonSubstr
Longest Common Substring - GFG/longest-common-substring.cpp:10
↓ 1 callersMethodlongestKSubstr
Longest K unique characters substring - GFG/longest-k-unique-characters-substring.cpp:13
↓ 1 callersMethodmatrixMultiplication
Matrix Chain Multiplication - GFG/matrix-chain-multiplication.cpp:30
↓ 1 callersMethodmaximumSumSubarray
Max Sum Subarray of size K - GFG/max-sum-subarray-of-size-k.cpp:9
↓ 1 callersMethodminDifference
Minimum sum partition - GFG/minimum-sum-partition.cpp:10
↓ 1 callersMethodnearlySorted
Nearly sorted - GFG/nearly-sorted.cpp:12
↓ 1 callersMethodpeek
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:42
↓ 1 callersFunctionprintFirstNegativeInteger
First negative integer in every window of size k - GFG/first-negative-integer-in-every-window-of-size-k.cpp:32
↓ 1 callersMethodremove
706-design-hashmap/706-design-hashmap.cpp:20
↓ 1 callersMethodsearch
Count Occurences of Anagrams - GFG/count-occurences-of-anagrams.cpp:12
↓ 1 callersMethodsubsetSums
Subset Sums - GFG/subset-sums.cpp:26
↓ 1 callersMethodsumBetweenTwoKth
Sum of elements between k1'th and k2'th smallest elements - GFG/sum-of-elements-between-k1th-and-k2th-smallest-elements.cpp:9
MethodBSTIterator
173-binary-search-tree-iterator/173-binary-search-tree-iterator.cpp:29
MethodCombinationIterator
1286-iterator-for-combination/1286-iterator-for-combination.cpp:25
MethodCustomStack
1381-design-a-stack-with-increment-operation/1381-design-a-stack-with-increment-operation.cpp:7
MethodFindElements
1261-find-elements-in-a-contaminated-binary-tree/1261-find-elements-in-a-contaminated-binary-tree.cpp:30
MethodKthLargest
703-kth-largest-element-in-a-stream/703-kth-largest-element-in-a-stream.cpp:8
MethodLogger
359-logger-rate-limiter/359-logger-rate-limiter.cpp:6
MethodMRUQueue
1756-design-most-recently-used-queue/1756-design-most-recently-used-queue.cpp:6
MethodMaxStack
716-max-stack/716-max-stack.cpp:6
MethodMinStack
155-min-stack/155-min-stack.cpp:6
MethodMovingAverage
346-moving-average-from-data-stream/346-moving-average-from-data-stream.cpp:7
MethodMyHashMap
706-design-hashmap/706-design-hashmap.cpp:7
MethodMyQueue
232-implement-queue-using-stacks/232-implement-queue-using-stacks.cpp:6
MethodMyStack
225-implement-stack-using-queues/225-implement-stack-using-queues.cpp:6
MethodNQueen
51-n-queens/51-n-queens.cpp:27
MethodNumNode
1628-design-an-expression-tree-with-evaluate-function/1628-design-an-expression-tree-with-evaluate-function.cpp:25
MethodOpNode
1628-design-an-expression-tree-with-evaluate-function/1628-design-an-expression-tree-with-evaluate-function.cpp:40
MethodOrderedStream
1656-design-an-ordered-stream/1656-design-an-ordered-stream.cpp:7
MethodParkingSystem
1603-design-parking-system/1603-design-parking-system.cpp:6
MethodProductOfNumbers
1352-product-of-the-last-k-numbers/1352-product-of-the-last-k-numbers.cpp:9
MethodSeatManager
1845-seat-reservation-manager/1845-seat-reservation-manager.cpp:7
MethodSolution
382-linked-list-random-node/382-linked-list-random-node.cpp:17
MethodSolution
528-random-pick-with-weight/528-random-pick-with-weight.cpp:7
MethodSparseVector
1570-dot-product-of-two-sparse-vectors/1570-dot-product-of-two-sparse-vectors.cpp:7
MethodStringIterator
604-design-compressed-string-iterator/604-design-compressed-string-iterator.cpp:10
MethodTwoSum
170-two-sum-iii-data-structure-design/170-two-sum-iii-data-structure-design.cpp:6
MethodUndergroundSystem
1396-design-underground-system/1396-design-underground-system.cpp:9
MethodWordDictionary
0211-design-add-and-search-words-data-structure/0211-design-add-and-search-words-data-structure.cpp:6
Methodadd
703-kth-largest-element-in-a-stream/703-kth-largest-element-in-a-stream.cpp:18
Methodadd
1352-product-of-the-last-k-numbers/1352-product-of-the-last-k-numbers.cpp:13
MethodaddBinary
67-add-binary/67-add-binary.cpp:4
MethodaddCar
1603-design-parking-system/1603-design-parking-system.cpp:15
MethodaddDigits
258-add-digits/258-add-digits.cpp:4
MethodaddNodeAtBeginning
Add Node at Beginning of Linked List
445-add-two-numbers-ii/445-add-two-numbers-ii.cpp:34
MethodaddNodeAtBeginning
25-reverse-nodes-in-k-group/25-reverse-nodes-in-k-group.cpp:14
MethodaddNodeAtBeginning
148-sort-list/148-sort-list.cpp:14
MethodaddNodeAtBeginning
23-merge-k-sorted-lists/23-merge-k-sorted-lists.cpp:14
MethodaddNodeAtBeginning
92-reverse-linked-list-ii/92-reverse-linked-list-ii.cpp:14
MethodaddNodeAtBeginning
86-partition-list/86-partition-list.cpp:14
MethodaddNodeAtBeginning
147-insertion-sort-list/147-insertion-sort-list.cpp:14
MethodaddNodeAtBeginning
0445-add-two-numbers-ii/0445-add-two-numbers-ii.cpp:14
MethodaddNodeAtBeginning
21-merge-two-sorted-lists/21-merge-two-sorted-lists.cpp:16
MethodaddNodeAtLast
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
MethodaddNodeAtLast
Add Node at Beginning of Linked List
2-add-two-numbers/2-add-two-numbers.cpp:15
MethodaddOneRow
0623-add-one-row-to-tree/0623-add-one-row-to-tree.cpp:43
MethodaddStrings
415-add-strings/415-add-strings.cpp:4
MethodaddTwoNumbers
445-add-two-numbers-ii/445-add-two-numbers-ii.cpp:51
MethodaddTwoNumbers
2-add-two-numbers/2-add-two-numbers.cpp:28
MethodaddTwoNumbers
0445-add-two-numbers-ii/0445-add-two-numbers-ii.cpp:29
MethodaddWord
0211-design-add-and-search-words-data-structure/0211-design-add-and-search-words-data-structure.cpp:10
MethodallCellsDistOrder
1030-matrix-cells-in-distance-order/1030-matrix-cells-in-distance-order.cpp:4
MethodallPathsSourceTarget
all-paths-from-source-to-target/all-paths-from-source-to-target.cpp:24
MethodallPathsSourceTarget
797-all-paths-from-source-to-target/797-all-paths-from-source-to-target.cpp:26
MethodallPossibleFBT
all-possible-full-binary-trees/all-possible-full-binary-trees.cpp:49
MethodamountOfTime
2385-amount-of-time-for-binary-tree-to-be-infected/2385-amount-of-time-for-binary-tree-to-be-infected.cpp:57
MethodanagramMappings
760-find-anagram-mappings/760-find-anagram-mappings.cpp:4
MethodareNumbersAscending
2042-check-if-numbers-are-ascending-in-a-sentence/2042-check-if-numbers-are-ascending-in-a-sentence.cpp:4
MethodareOccurrencesEqual
1941-check-if-all-characters-have-equal-number-of-occurrences/1941-check-if-all-characters-have-equal-number-of-occurrences.cpp:4
MethodareSentencesSimilar
734-sentence-similarity/734-sentence-similarity.cpp:4
MethodarraySign
1822-sign-of-the-product-of-an-array/1822-sign-of-the-product-of-an-array.cpp:4
MethodarraysIntersection
1213-intersection-of-three-sorted-arrays/1213-intersection-of-three-sorted-arrays.cpp:4
MethodaverageOfLevels
637-average-of-levels-in-binary-tree/637-average-of-levels-in-binary-tree.cpp:47
MethodaverageOfSubtree
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