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
Function
nextLargestNumberToTheRight
cpp/Stacks/next_largest_number_to_the_right.cpp:3
Method
nextLargestNumberToTheRight
(int[] nums)
java/Stacks/NextLargestNumberToTheRight.java:4
Function
nextLexicographicalSequence
kotlin/Two Pointers/NextLexicographicalSequence.kt:1
Function
nextLexicographicalSequence
cpp/Two Pointers/next_lexicographical_sequence.cpp:4
Function
nextLexicographicalSequence
(s: string)
typescript/Two Pointers/next_lexicographical_sequence.ts:1
Function
nextLexicographicalSequence
(s string)
go/Two Pointers/next_lexicographical_sequence.go:1
Method
nextLexicographicalSequence
(String s)
java/Two Pointers/NextLexicographicalSequence.java:2
Function
next_largest_number_to_the_right
(nums: List[int])
python3/Stacks/next_largest_number_to_the_right.py:4
Function
next_lexicographical_sequence
(s: &str)
rust/Two Pointers/next_lexicographical_sequence.rs:1
Function
next_lexicographical_sequence
(s: str)
python3/Two Pointers/next_lexicographical_sequence.py:1
Function
pairSumSorted
kotlin/Two Pointers/PairSumSorted.kt:1
Function
pairSumSorted
cpp/Two Pointers/pair_sum_sorted.cpp:3
Function
pairSumSorted
(nums: number[], target: number)
typescript/Two Pointers/pair_sum_sorted.ts:1
Function
pairSumSorted
(nums []int, target int)
go/Two Pointers/pair_sum_sorted.go:1
Method
pairSumSorted
(int[] nums, int target)
java/Two Pointers/PairSumSorted.java:4
Function
pairSumSortedBruteForce
kotlin/Two Pointers/PairSumSortedBruteForce.kt:1
Function
pairSumSortedBruteForce
cpp/Two Pointers/pair_sum_sorted_brute_force.cpp:3
Function
pairSumSortedBruteForce
(nums: number[], target: number)
typescript/Two Pointers/pair_sum_sorted_brute_force.ts:1
Method
pairSumSortedBruteForce
(int[] nums, int target)
java/Two Pointers/PairSumSortedBruteForce.java:4
Function
pairSumUnsorted
kotlin/Hash Maps and Sets/PairSumUnsorted.kt:1
Function
pairSumUnsorted
cpp/Hash Maps and Sets/pair_sum_unsorted.cpp:4
Function
pairSumUnsorted
(nums: number[], target: number)
typescript/Hash Maps and Sets/pair_sum_unsorted.ts:1
Function
pairSumUnsorted
(nums []int, target int)
go/Hash Maps and Sets/pair_sum_unsorted.go:1
Method
pairSumUnsorted
(int[] nums, int target)
java/Hash Maps and Sets/PairSumUnsorted.java:5
Function
pairSumUnsortedTwoPass
kotlin/Hash Maps and Sets/PairSumUnSortedTwoPass.kt:1
Function
pairSumUnsortedTwoPass
cpp/Hash Maps and Sets/pair_sum_unsorted_two_pass.cpp:4
Function
pairSumUnsortedTwoPass
(nums: number[], target: number)
typescript/Hash Maps and Sets/pair_sum_unsorted_two_pass.ts:1
Function
pairSumUnsortedTwoPass
(nums []int, target int)
go/Hash Maps and Sets/pair_sum_unsorted_two_pass.go:1
Method
pairSumUnsortedTwoPass
(int[] nums)
java/Hash Maps and Sets/PairSumUnsortedTwoPass.java:5
Function
pair_sum_sorted
(nums: &[i32], target: i32)
rust/Two Pointers/pair_sum_sorted.rs:1
Function
pair_sum_sorted
(nums: List[int], target: int)
python3/Two Pointers/pair_sum_sorted.py:4
Function
pair_sum_sorted_brute_force
(nums: Vec<i32>, target: i32)
rust/Two Pointers/pair_sum_sorted_brute_force.rs:1
Function
pair_sum_sorted_brute_force
(nums: List[int], target: int)
python3/Two Pointers/pair_sum_sorted_brute_force.py:4
Function
pair_sum_unsorted
(nums: &[i32], target: i32)
rust/Hash Maps and Sets/pair_sum_unsorted.rs:3
Function
pair_sum_unsorted
(nums: List[int], target: int)
python3/Hash Maps and Sets/pair_sum_unsorted.py:4
Function
pair_sum_unsorted_two_pass
(nums: Vec<i32>, target: i32)
rust/Hash Maps and Sets/pair_sum_unsorted_two_pass.rs:3
Function
pair_sum_unsorted_two_pass
(nums: List[int], target: int)
python3/Hash Maps and Sets/pair_sum_unsorted_two_pass.py:4
Function
palindromicLinkedList
kotlin/Linked Lists/PalindromicLinkedList.kt:8
Function
palindromicLinkedList
cpp/Linked Lists/palindromic_linked_list.cpp:13
Function
palindromicLinkedList
(head: ListNode | null)
typescript/Linked Lists/palindromic_linked_list.ts:12
Method
palindromicLinkedList
(ListNode head)
java/Linked Lists/PalindromicLinkedList.java:18
Function
palindromic_linked_list
(head: ListNode)
python3/Linked Lists/palindromic_linked_list.py:12
Method
peek
cpp/Stacks/implement_a_queue_using_a_stack.cpp:35
Method
peek
(self)
python3/Stacks/implement_a_queue_using_a_stack.py:22
Function
phoneKeypadCombinations
kotlin/Backtracking/PhoneKeypadCombinations.kt:1
Function
phoneKeypadCombinations
cpp/Backtracking/phone_keypad_combinations.cpp:5
Method
phoneKeypadCombinations
(String digits)
java/Backtracking/PhoneKeypadCombinations.java:7
Function
phone_keypad_combinations
(digits: str)
python3/Backtracking/phone_keypad_combinations.py:4
Function
prerequisites
kotlin/Graphs/Prerequisites.kt:1
Function
prerequisites
cpp/Graphs/prerequisites.cpp:4
Function
prerequisites
(n: int, prerequisites: List[List[int]])
python3/Graphs/prerequisites.py:5
Method
prerequisites
(int n, int[][] prerequisites)
java/Graphs/Prerequisites.java:9
Function
productArrayWithoutCurrentElement
kotlin/Prefix Sums/ProductsArrayWithoutCurrentElement.kt:1
Function
productArrayWithoutCurrentElement
cpp/Prefix Sums/product_array_without_current_element.cpp:3
Method
productArrayWithoutCurrentElement
(int[] nums)
java/Prefix Sums/ProductArrayWithoutCurrentElement.java:4
Function
product_array_without_current_element
(nums: List[int])
python3/Prefix Sums/product_array_without_current_element.py:4
Method
put
kotlin/Linked Lists/LRUCache.kt:37
Method
put
cpp/Linked Lists/lru_cache.cpp:54
Method
put
(key: number, val: number)
typescript/Linked Lists/lru_cache.ts:42
Method
put
(self, key: int, value: int)
python3/Linked Lists/lru_cache.py:29
Function
removeKthLastNode
kotlin/Linked Lists/RemoveKthLastNode.kt:8
Function
removeKthLastNode
cpp/Linked Lists/remove_kth_last_node.cpp:13
Function
removeKthLastNode
(head: ListNode | null, k: number)
typescript/Linked Lists/remove_kth_last_node.ts:12
Method
removeKthLastNode
(ListNode head, int k)
java/Linked Lists/RemoveKthLastNode.java:18
Method
removeNode
kotlin/Linked Lists/LRUCache.kt:62
Method
removeNode
cpp/Linked Lists/lru_cache.cpp:84
Method
removeNode
(DoublyLinkedListNode node)
csharp/Linked Lists/LRUCache.cs:88
Function
remove_kth_last_node
(head: ListNode, k: int)
python3/Linked Lists/remove_kth_last_node.py:12
Function
repeatedRemovalOfAdjacentDuplicates
kotlin/Stacks/RepeatedRemovalOfAdjacentDuplicates.kt:3
Function
repeatedRemovalOfAdjacentDuplicates
cpp/Stacks/repeated_removal_of_adjacent_duplicates.cpp:4
Method
repeatedRemovalOfAdjacentDuplicates
(String s)
java/Stacks/RepeatedRemovalOfAdjacentDuplicates.java:4
Function
repeated_removal_of_adjacent_duplicates
(s: str)
python3/Stacks/repeated_removal_of_adjacent_duplicates.py:1
Function
reverse32BitInteger
kotlin/Math and Geometry/Reverse32BitInteger.kt:1
Function
reverse32BitInteger
cpp/Math and Geometry/reverse_32_bit_integer.cpp:3
Method
reverseList
From the 'Reverse Linked List' problem.
csharp/Linked Lists/PalindromicLinkedList.cs:46
Function
reverse_32_bit_integer
(n: int)
python3/Math and Geometry/reverse_32_bit_integer.py:4
Function
rightmostNodesOfABinaryTree
kotlin/Trees/RightmostNodesOfABinaryTree.kt:14
Function
rightmostNodesOfABinaryTree
cpp/Trees/rightmost_nodes_of_a_binary_tree.cpp:17
Method
rightmostNodesOfABinaryTree
(TreeNode root)
java/Trees/RightmostNodesOfABinaryTree.java:21
Function
rightmost_nodes_of_a_binary_tree
(root: TreeNode)
python3/Trees/rightmost_nodes_of_a_binary_tree.py:14
Method
search
kotlin/Tries/InsertAndSearchWordsWithWildcards.kt:20
Method
search
kotlin/Tries/DesignATrie.kt:24
Method
search
cpp/Tries/insert_and_search_words_with_wildcards.cpp:37
Method
search
cpp/Tries/design_a_trie.cpp:41
Method
search
(self, word: str)
python3/Tries/insert_and_search_words_with_wildcards.py:18
Method
search
(self, word: str)
python3/Tries/design_a_trie.py:23
Method
search
(String word)
java/Tries/DesignATrie.java:33
Method
search
(String word)
java/Tries/InsertAndSearchWordsWithWildcards.java:29
Method
searchHelper
kotlin/Tries/InsertAndSearchWordsWithWildcards.kt:25
Method
searchHelper
cpp/Tries/insert_and_search_words_with_wildcards.cpp:45
Method
select
kotlin/Binary Search/WeightRandomSelection.kt:11
Method
select
cpp/Binary Search/weighted_random_selection.cpp:20
Method
select
(self)
python3/Binary Search/weighted_random_selection.py:11
Method
select
()
java/Binary Search/WeightedRandomSelection.java:11
Function
serialize
kotlin/Trees/SerializeAndDeserializeABinaryTree.kt:14
Function
serialize
cpp/Trees/serialize_and_deserialize_a_binary_tree.cpp:17
Function
serialize
(root: TreeNode)
python3/Trees/serialize_and_deserialize_a_binary_tree.py:14
Method
serialize
(TreeNode root)
java/Trees/SerializeAndDeserializeABinaryTree.java:21
Function
shiftZerosToTheEnd
kotlin/Two Pointers/ShiftZeroToTheEnd.kt:1
Function
shiftZerosToTheEnd
cpp/Two Pointers/shift_zeros_to_the_end.cpp:4
← previous
next →
801–900 of 1,014, ranked by callers