Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteByteGoHq/coding-interview-patterns
/ functions
Functions
1,014 in github.com/ByteByteGoHq/coding-interview-patterns
⨍
Functions
1,014
◇
Types & classes
253
Method
Pair
(string str, int freq)
csharp/Heaps/KMostFrequentStringsMinHeap.cs:6
Method
Pair
(String str, int freq)
java/Heaps/KMostFrequentStringsMinHeap.java:12
Method
Pair
(String str, int freq)
java/Heaps/KMostFrequentStringsMaxHeap.java:12
Method
Pair
(TreeNode node, int index)
java/Trees/WidestBinaryTreeLevel.java:22
Method
Pair
(TreeNode node, int column)
java/Trees/BinaryTreeColumns.java:26
Method
PairSumSorted
(int[] nums, int target)
csharp/Two Pointers/PairSumSorted.cs:3
Method
PairSumSortedAllPairs
(int[] nums, int start, int target)
csharp/Two Pointers/TripletSum.cs:34
Method
PairSumSortedBruteForce
(int[] nums, int target)
csharp/Two Pointers/PairSumSortedBruteForce.cs:3
Method
PairSumUnsorted
(int[] nums, int target)
csharp/Hash Maps and Sets/PairSumUnsorted.cs:3
Method
PairSumUnsortedTwoPass
(int[] nums, int target)
csharp/Hash Maps and Sets/PairSumUnsortedTwoPass.cs:3
Method
PalindromicLinkedList
(ListNode head)
csharp/Linked Lists/PalindromicLinkedList.cs:21
Method
PhoneKeypadCombinations
(string digits)
csharp/Backtracking/PhoneKeypadCombinations.cs:3
Method
ProductArrayWithoutCurrentElement
(int[] nums)
csharp/Prefix Sums/ProductArrayWithoutCurrentElement.cs:3
Method
Put
(int key, int value)
csharp/Linked Lists/LRUCache.cs:57
Method
Queue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:6
Method
Queue
()
csharp/Stacks/ImplementAQueueUsingAStack.cs:6
Method
RemoveKthLastNode
(ListNode head, int k)
csharp/Linked Lists/RemoveKthLastNode.cs:21
Method
RepeatedRemovalOfAdjacentDuplicates
(string s)
csharp/Stacks/RepeatedRemovalOfAdjacentDuplicates.cs:3
Method
ReverseString
(char[] s, int start, int end)
csharp/Two Pointers/NextLexicographicalSequence.cs:35
Method
Select
()
csharp/Binary Search/WeightedRandomSelection.cs:17
Method
ShiftZerosToTheEnd
(int[] nums)
csharp/Two Pointers/ShiftZerosToTheEnd.cs:3
Method
ShiftZerosToTheEndNaive
(int[] nums)
csharp/Two Pointers/ShiftZerosToTheEndNaive.cs:3
Method
SortAKSortedArray
(int[] nums, int k)
csharp/Heaps/SortAKSortedArray.cs:3
Method
SubstringAnagrams
(string s, string t)
csharp/Sliding Windows/SubstringAnagrams.cs:3
Method
SumBetweenRange
cpp/Prefix Sums/sum_between_range.cpp:5
Method
SumBetweenRange
(int[] nums)
csharp/Prefix Sums/SumBetweenRange.cs:5
Method
SumBetweenRange
(int[] nums)
java/Prefix Sums/SumBetweenRange.java:4
Method
SumRange
(int i, int j)
csharp/Prefix Sums/SumBetweenRange.cs:14
Method
TransferEnqueueToDequeue
()
csharp/Stacks/ImplementAQueueUsingAStack.cs:17
Method
Trie
cpp/Tries/design_a_trie.cpp:18
Method
TrieNode
cpp/Tries/find_all_words_on_a_board.cpp:9
Method
TrieNode
cpp/Tries/insert_and_search_words_with_wildcards.cpp:8
Method
TrieNode
cpp/Tries/design_a_trie.cpp:8
Method
TrieNode
()
java/Tries/DesignATrie.java:7
Method
TrieNode
()
java/Tries/InsertAndSearchWordsWithWildcards.java:7
Method
TrieNode
()
java/Tries/FindAllWordsOnABoard.java:9
Method
TripletSum
(int[] nums)
csharp/Two Pointers/TripletSum.cs:3
Method
TripletSumBruteForce
(int[] nums)
csharp/Two Pointers/TripletSumBruteForce.cs:3
Method
UnionFind
cpp/Graphs/connect_the_dots.cpp:10
Method
UnionFind
cpp/Graphs/merging_communities.cpp:7
Method
UnionFind
(int size)
java/Graphs/ConnectTheDots.java:10
Method
UnionFind
(int size)
java/Graphs/MergingCommunities.java:7
Method
ValidParenthesisExpression
(string s)
csharp/Stacks/ValidParenthesisExpression.cs:3
Method
VerifySudokuBoard
(int[][] board)
csharp/Hash Maps and Sets/VerifySudokuBoard.cs:3
Method
WeightedRandomSelection
cpp/Binary Search/weighted_random_selection.cpp:10
Method
WeightedRandomSelection
(int[] weights)
csharp/Binary Search/WeightedRandomSelection.cs:6
Method
WeightedRandomSelection
(int[] weights)
java/Binary Search/WeightedRandomSelection.java:4
Method
ZeroStriping
(int[][] matrix)
csharp/Hash Maps and Sets/ZeroStriping.cs:3
Method
ZeroStripingHashSets
(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
Method
add
cpp/Heaps/median_of_an_integer_stream.cpp:8
Method
addToTail
kotlin/Linked Lists/LRUCache.kt:54
Method
addToTail
cpp/Linked Lists/lru_cache.cpp:76
Method
addToTail
(DoublyLinkedListNode node)
csharp/Linked Lists/LRUCache.cs:77
Method
backtrack
(int i, List<char> currCombination, string digits, Dictionary<char, string> keypadMap, List<string> res)
csharp/Backtracking/PhoneKeypadCombinations.cs:23
Method
backtrack
(int[] nums, List<int> candidate, HashSet<int> used, List<int[]> res)
csharp/Backtracking/FindAllPermutations.cs:11
Method
backtrack
(int i, List<int> currSubset, int[] nums, IList<int[]> res)
csharp/Backtracking/FindAllSubsets.cs:11
Function
balancedBinaryTreeValidation
kotlin/Trees/BalancedBinaryTreeValidation.kt:13
Function
balancedBinaryTreeValidation
cpp/Trees/balanced_binary_tree_validation.cpp:15
Method
balancedBinaryTreeValidation
(TreeNode root)
java/Trees/BalancedBinaryTreeValidation.java:16
Function
balanced_binary_tree_validation
(root: TreeNode)
python3/Trees/balanced_binary_tree_validation.py:13
Function
binarySearchTreeValidation
kotlin/Trees/BinarySearchTreeValidation.kt:13
Function
binarySearchTreeValidation
cpp/Trees/binary_search_tree_validation.cpp:16
Method
binarySearchTreeValidation
(TreeNode root)
java/Trees/BinarySearchTreeValidation.java:16
Function
binaryTreeColumns
kotlin/Trees/BinaryTreeColumns.kt:14
Function
binaryTreeColumns
cpp/Trees/binary_tree_columns.cpp:20
Method
binaryTreeColumns
(TreeNode root)
java/Trees/BinaryTreeColumns.java:32
Function
binaryTreeSymmetry
kotlin/Trees/BinaryTreeSymmetry.kt:13
Function
binaryTreeSymmetry
cpp/Trees/binary_tree_symmetry.cpp:15
Method
binaryTreeSymmetry
(TreeNode root)
java/Trees/BinaryTreeSymmetry.java:16
Function
binary_search_tree_validation
(root: TreeNode)
python3/Trees/binary_search_tree_validation.py:13
Function
binary_tree_columns
(root: TreeNode)
python3/Trees/binary_tree_columns.py:15
Function
binary_tree_symmetry
(root: TreeNode)
python3/Trees/binary_tree_symmetry.py:13
Function
bipartiteGraphValidation
kotlin/Graphs/BipartiteGraphValidation.kt:1
Function
bipartiteGraphValidation
cpp/Graphs/bipartite_graph_validation.cpp:3
Method
bipartiteGraphValidation
(int[][] graph)
java/Graphs/BipartiteGraphValidation.java:2
Function
bipartite_graph_validation
(graph: List[List[int]])
python3/Graphs/bipartite_graph_validation.py:4
Function
buildBinaryTree
kotlin/Trees/BuildBinaryTree.kt:13
Function
buildBinaryTree
cpp/Trees/build_binary_tree.cpp:17
Method
buildBinaryTree
(int[] preorder, int[] inorder)
java/Trees/BuildBinaryTree.java:22
Function
build_binary_tree
(preorder: List[int], inorder: List[int])
python3/Trees/build_binary_tree.py:17
Function
candies
kotlin/Greedy/Candies.kt:1
Function
candies
cpp/Greedy/candies.cpp:5
← previous
next →
301–400 of 1,014, ranked by callers