MCPcopy Create free account

hub / github.com/ByteByteGoHq/coding-interview-patterns / functions

Functions1,014 in github.com/ByteByteGoHq/coding-interview-patterns

MethodPair
(string str, int freq)
csharp/Heaps/KMostFrequentStringsMinHeap.cs:6
MethodPair
(String str, int freq)
java/Heaps/KMostFrequentStringsMinHeap.java:12
MethodPair
(String str, int freq)
java/Heaps/KMostFrequentStringsMaxHeap.java:12
MethodPair
(TreeNode node, int index)
java/Trees/WidestBinaryTreeLevel.java:22
MethodPair
(TreeNode node, int column)
java/Trees/BinaryTreeColumns.java:26
MethodPairSumSorted
(int[] nums, int target)
csharp/Two Pointers/PairSumSorted.cs:3
MethodPairSumSortedAllPairs
(int[] nums, int start, int target)
csharp/Two Pointers/TripletSum.cs:34
MethodPairSumSortedBruteForce
(int[] nums, int target)
csharp/Two Pointers/PairSumSortedBruteForce.cs:3
MethodPairSumUnsorted
(int[] nums, int target)
csharp/Hash Maps and Sets/PairSumUnsorted.cs:3
MethodPairSumUnsortedTwoPass
(int[] nums, int target)
csharp/Hash Maps and Sets/PairSumUnsortedTwoPass.cs:3
MethodPalindromicLinkedList
(ListNode head)
csharp/Linked Lists/PalindromicLinkedList.cs:21
MethodPhoneKeypadCombinations
(string digits)
csharp/Backtracking/PhoneKeypadCombinations.cs:3
MethodProductArrayWithoutCurrentElement
(int[] nums)
csharp/Prefix Sums/ProductArrayWithoutCurrentElement.cs:3
MethodPut
(int key, int value)
csharp/Linked Lists/LRUCache.cs:57
MethodQueue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:6
MethodQueue
()
csharp/Stacks/ImplementAQueueUsingAStack.cs:6
MethodRemoveKthLastNode
(ListNode head, int k)
csharp/Linked Lists/RemoveKthLastNode.cs:21
MethodRepeatedRemovalOfAdjacentDuplicates
(string s)
csharp/Stacks/RepeatedRemovalOfAdjacentDuplicates.cs:3
MethodReverseString
(char[] s, int start, int end)
csharp/Two Pointers/NextLexicographicalSequence.cs:35
MethodSelect
()
csharp/Binary Search/WeightedRandomSelection.cs:17
MethodShiftZerosToTheEnd
(int[] nums)
csharp/Two Pointers/ShiftZerosToTheEnd.cs:3
MethodShiftZerosToTheEndNaive
(int[] nums)
csharp/Two Pointers/ShiftZerosToTheEndNaive.cs:3
MethodSortAKSortedArray
(int[] nums, int k)
csharp/Heaps/SortAKSortedArray.cs:3
MethodSubstringAnagrams
(string s, string t)
csharp/Sliding Windows/SubstringAnagrams.cs:3
MethodSumBetweenRange
cpp/Prefix Sums/sum_between_range.cpp:5
MethodSumBetweenRange
(int[] nums)
csharp/Prefix Sums/SumBetweenRange.cs:5
MethodSumBetweenRange
(int[] nums)
java/Prefix Sums/SumBetweenRange.java:4
MethodSumRange
(int i, int j)
csharp/Prefix Sums/SumBetweenRange.cs:14
MethodTransferEnqueueToDequeue
()
csharp/Stacks/ImplementAQueueUsingAStack.cs:17
MethodTrie
cpp/Tries/design_a_trie.cpp:18
MethodTrieNode
cpp/Tries/find_all_words_on_a_board.cpp:9
MethodTrieNode
cpp/Tries/insert_and_search_words_with_wildcards.cpp:8
MethodTrieNode
cpp/Tries/design_a_trie.cpp:8
MethodTrieNode
()
java/Tries/DesignATrie.java:7
MethodTrieNode
()
java/Tries/InsertAndSearchWordsWithWildcards.java:7
MethodTrieNode
()
java/Tries/FindAllWordsOnABoard.java:9
MethodTripletSum
(int[] nums)
csharp/Two Pointers/TripletSum.cs:3
MethodTripletSumBruteForce
(int[] nums)
csharp/Two Pointers/TripletSumBruteForce.cs:3
MethodUnionFind
cpp/Graphs/connect_the_dots.cpp:10
MethodUnionFind
cpp/Graphs/merging_communities.cpp:7
MethodUnionFind
(int size)
java/Graphs/ConnectTheDots.java:10
MethodUnionFind
(int size)
java/Graphs/MergingCommunities.java:7
MethodValidParenthesisExpression
(string s)
csharp/Stacks/ValidParenthesisExpression.cs:3
MethodVerifySudokuBoard
(int[][] board)
csharp/Hash Maps and Sets/VerifySudokuBoard.cs:3
MethodWeightedRandomSelection
cpp/Binary Search/weighted_random_selection.cpp:10
MethodWeightedRandomSelection
(int[] weights)
csharp/Binary Search/WeightedRandomSelection.cs:6
MethodWeightedRandomSelection
(int[] weights)
java/Binary Search/WeightedRandomSelection.java:4
MethodZeroStriping
(int[][] matrix)
csharp/Hash Maps and Sets/ZeroStriping.cs:3
MethodZeroStripingHashSets
(int[][] matrix)
csharp/Hash Maps and Sets/ZeroStripingHashSets.cs:3
Method__init__
(self, nums: List[int])
python3/Prefix Sums/sum_between_range.py:5
Method__init__
(self, key: int, val: int)
python3/Linked Lists/lru_cache.py:2
Method__init__
(self, capacity: int)
python3/Linked Lists/lru_cache.py:9
Method__init__
(self, size)
python3/Graphs/connect_the_dots.py:5
Method__init__
(self, size: int)
python3/Graphs/merging_communities.py:2
Method__init__
(self, n: int)
python3/Graphs/merging_communities.py:31
Method__init__
(self)
python3/Heaps/median_of_an_integer_stream.py:5
Method__init__
(self, str, freq)
python3/Heaps/k_most_frequent_strings_max_heap.py:7
Method__init__
(self, str, freq)
python3/Heaps/k_most_frequent_strings_min_heap.py:7
Method__init__
(self)
python3/Tries/insert_and_search_words_with_wildcards.py:2
Method__init__
(self)
python3/Tries/insert_and_search_words_with_wildcards.py:7
Method__init__
(self)
python3/Tries/design_a_trie.py:2
Method__init__
(self)
python3/Tries/design_a_trie.py:8
Method__init__
(self)
python3/Tries/find_all_words_on_a_board.py:4
Method__init__
(self)
python3/Stacks/implement_a_queue_using_a_stack.py:2
Method__init__
(self, weights: List[int])
python3/Binary Search/weighted_random_selection.py:6
Method__lt__
(self, other)
python3/Heaps/k_most_frequent_strings_max_heap.py:12
Method__lt__
(self, other)
python3/Heaps/k_most_frequent_strings_min_heap.py:13
Methodadd
cpp/Heaps/median_of_an_integer_stream.cpp:8
MethodaddToTail
kotlin/Linked Lists/LRUCache.kt:54
MethodaddToTail
cpp/Linked Lists/lru_cache.cpp:76
MethodaddToTail
(DoublyLinkedListNode node)
csharp/Linked Lists/LRUCache.cs:77
Methodbacktrack
(int i, List<char> currCombination, string digits, Dictionary<char, string> keypadMap, List<string> res)
csharp/Backtracking/PhoneKeypadCombinations.cs:23
Methodbacktrack
(int[] nums, List<int> candidate, HashSet<int> used, List<int[]> res)
csharp/Backtracking/FindAllPermutations.cs:11
Methodbacktrack
(int i, List<int> currSubset, int[] nums, IList<int[]> res)
csharp/Backtracking/FindAllSubsets.cs:11
FunctionbalancedBinaryTreeValidation
kotlin/Trees/BalancedBinaryTreeValidation.kt:13
FunctionbalancedBinaryTreeValidation
cpp/Trees/balanced_binary_tree_validation.cpp:15
MethodbalancedBinaryTreeValidation
(TreeNode root)
java/Trees/BalancedBinaryTreeValidation.java:16
Functionbalanced_binary_tree_validation
(root: TreeNode)
python3/Trees/balanced_binary_tree_validation.py:13
FunctionbinarySearchTreeValidation
kotlin/Trees/BinarySearchTreeValidation.kt:13
FunctionbinarySearchTreeValidation
cpp/Trees/binary_search_tree_validation.cpp:16
MethodbinarySearchTreeValidation
(TreeNode root)
java/Trees/BinarySearchTreeValidation.java:16
FunctionbinaryTreeColumns
kotlin/Trees/BinaryTreeColumns.kt:14
FunctionbinaryTreeColumns
cpp/Trees/binary_tree_columns.cpp:20
MethodbinaryTreeColumns
(TreeNode root)
java/Trees/BinaryTreeColumns.java:32
FunctionbinaryTreeSymmetry
kotlin/Trees/BinaryTreeSymmetry.kt:13
FunctionbinaryTreeSymmetry
cpp/Trees/binary_tree_symmetry.cpp:15
MethodbinaryTreeSymmetry
(TreeNode root)
java/Trees/BinaryTreeSymmetry.java:16
Functionbinary_search_tree_validation
(root: TreeNode)
python3/Trees/binary_search_tree_validation.py:13
Functionbinary_tree_columns
(root: TreeNode)
python3/Trees/binary_tree_columns.py:15
Functionbinary_tree_symmetry
(root: TreeNode)
python3/Trees/binary_tree_symmetry.py:13
FunctionbipartiteGraphValidation
kotlin/Graphs/BipartiteGraphValidation.kt:1
FunctionbipartiteGraphValidation
cpp/Graphs/bipartite_graph_validation.cpp:3
MethodbipartiteGraphValidation
(int[][] graph)
java/Graphs/BipartiteGraphValidation.java:2
Functionbipartite_graph_validation
(graph: List[List[int]])
python3/Graphs/bipartite_graph_validation.py:4
FunctionbuildBinaryTree
kotlin/Trees/BuildBinaryTree.kt:13
FunctionbuildBinaryTree
cpp/Trees/build_binary_tree.cpp:17
MethodbuildBinaryTree
(int[] preorder, int[] inorder)
java/Trees/BuildBinaryTree.java:22
Functionbuild_binary_tree
(preorder: List[int], inorder: List[int])
python3/Trees/build_binary_tree.py:17
Functioncandies
kotlin/Greedy/Candies.kt:1
Functioncandies
cpp/Greedy/candies.cpp:5
← previousnext →301–400 of 1,014, ranked by callers