MCPcopy Create free account

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

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

FunctionnextLargestNumberToTheRight
cpp/Stacks/next_largest_number_to_the_right.cpp:3
MethodnextLargestNumberToTheRight
(int[] nums)
java/Stacks/NextLargestNumberToTheRight.java:4
FunctionnextLexicographicalSequence
kotlin/Two Pointers/NextLexicographicalSequence.kt:1
FunctionnextLexicographicalSequence
cpp/Two Pointers/next_lexicographical_sequence.cpp:4
FunctionnextLexicographicalSequence
(s: string)
typescript/Two Pointers/next_lexicographical_sequence.ts:1
FunctionnextLexicographicalSequence
(s string)
go/Two Pointers/next_lexicographical_sequence.go:1
MethodnextLexicographicalSequence
(String s)
java/Two Pointers/NextLexicographicalSequence.java:2
Functionnext_largest_number_to_the_right
(nums: List[int])
python3/Stacks/next_largest_number_to_the_right.py:4
Functionnext_lexicographical_sequence
(s: &str)
rust/Two Pointers/next_lexicographical_sequence.rs:1
Functionnext_lexicographical_sequence
(s: str)
python3/Two Pointers/next_lexicographical_sequence.py:1
FunctionpairSumSorted
kotlin/Two Pointers/PairSumSorted.kt:1
FunctionpairSumSorted
cpp/Two Pointers/pair_sum_sorted.cpp:3
FunctionpairSumSorted
(nums: number[], target: number)
typescript/Two Pointers/pair_sum_sorted.ts:1
FunctionpairSumSorted
(nums []int, target int)
go/Two Pointers/pair_sum_sorted.go:1
MethodpairSumSorted
(int[] nums, int target)
java/Two Pointers/PairSumSorted.java:4
FunctionpairSumSortedBruteForce
kotlin/Two Pointers/PairSumSortedBruteForce.kt:1
FunctionpairSumSortedBruteForce
cpp/Two Pointers/pair_sum_sorted_brute_force.cpp:3
FunctionpairSumSortedBruteForce
(nums: number[], target: number)
typescript/Two Pointers/pair_sum_sorted_brute_force.ts:1
MethodpairSumSortedBruteForce
(int[] nums, int target)
java/Two Pointers/PairSumSortedBruteForce.java:4
FunctionpairSumUnsorted
kotlin/Hash Maps and Sets/PairSumUnsorted.kt:1
FunctionpairSumUnsorted
cpp/Hash Maps and Sets/pair_sum_unsorted.cpp:4
FunctionpairSumUnsorted
(nums: number[], target: number)
typescript/Hash Maps and Sets/pair_sum_unsorted.ts:1
FunctionpairSumUnsorted
(nums []int, target int)
go/Hash Maps and Sets/pair_sum_unsorted.go:1
MethodpairSumUnsorted
(int[] nums, int target)
java/Hash Maps and Sets/PairSumUnsorted.java:5
FunctionpairSumUnsortedTwoPass
kotlin/Hash Maps and Sets/PairSumUnSortedTwoPass.kt:1
FunctionpairSumUnsortedTwoPass
cpp/Hash Maps and Sets/pair_sum_unsorted_two_pass.cpp:4
FunctionpairSumUnsortedTwoPass
(nums: number[], target: number)
typescript/Hash Maps and Sets/pair_sum_unsorted_two_pass.ts:1
FunctionpairSumUnsortedTwoPass
(nums []int, target int)
go/Hash Maps and Sets/pair_sum_unsorted_two_pass.go:1
MethodpairSumUnsortedTwoPass
(int[] nums)
java/Hash Maps and Sets/PairSumUnsortedTwoPass.java:5
Functionpair_sum_sorted
(nums: &[i32], target: i32)
rust/Two Pointers/pair_sum_sorted.rs:1
Functionpair_sum_sorted
(nums: List[int], target: int)
python3/Two Pointers/pair_sum_sorted.py:4
Functionpair_sum_sorted_brute_force
(nums: Vec<i32>, target: i32)
rust/Two Pointers/pair_sum_sorted_brute_force.rs:1
Functionpair_sum_sorted_brute_force
(nums: List[int], target: int)
python3/Two Pointers/pair_sum_sorted_brute_force.py:4
Functionpair_sum_unsorted
(nums: &[i32], target: i32)
rust/Hash Maps and Sets/pair_sum_unsorted.rs:3
Functionpair_sum_unsorted
(nums: List[int], target: int)
python3/Hash Maps and Sets/pair_sum_unsorted.py:4
Functionpair_sum_unsorted_two_pass
(nums: Vec<i32>, target: i32)
rust/Hash Maps and Sets/pair_sum_unsorted_two_pass.rs:3
Functionpair_sum_unsorted_two_pass
(nums: List[int], target: int)
python3/Hash Maps and Sets/pair_sum_unsorted_two_pass.py:4
FunctionpalindromicLinkedList
kotlin/Linked Lists/PalindromicLinkedList.kt:8
FunctionpalindromicLinkedList
cpp/Linked Lists/palindromic_linked_list.cpp:13
FunctionpalindromicLinkedList
(head: ListNode | null)
typescript/Linked Lists/palindromic_linked_list.ts:12
MethodpalindromicLinkedList
(ListNode head)
java/Linked Lists/PalindromicLinkedList.java:18
Functionpalindromic_linked_list
(head: ListNode)
python3/Linked Lists/palindromic_linked_list.py:12
Methodpeek
cpp/Stacks/implement_a_queue_using_a_stack.cpp:35
Methodpeek
(self)
python3/Stacks/implement_a_queue_using_a_stack.py:22
FunctionphoneKeypadCombinations
kotlin/Backtracking/PhoneKeypadCombinations.kt:1
FunctionphoneKeypadCombinations
cpp/Backtracking/phone_keypad_combinations.cpp:5
MethodphoneKeypadCombinations
(String digits)
java/Backtracking/PhoneKeypadCombinations.java:7
Functionphone_keypad_combinations
(digits: str)
python3/Backtracking/phone_keypad_combinations.py:4
Functionprerequisites
kotlin/Graphs/Prerequisites.kt:1
Functionprerequisites
cpp/Graphs/prerequisites.cpp:4
Functionprerequisites
(n: int, prerequisites: List[List[int]])
python3/Graphs/prerequisites.py:5
Methodprerequisites
(int n, int[][] prerequisites)
java/Graphs/Prerequisites.java:9
FunctionproductArrayWithoutCurrentElement
kotlin/Prefix Sums/ProductsArrayWithoutCurrentElement.kt:1
FunctionproductArrayWithoutCurrentElement
cpp/Prefix Sums/product_array_without_current_element.cpp:3
MethodproductArrayWithoutCurrentElement
(int[] nums)
java/Prefix Sums/ProductArrayWithoutCurrentElement.java:4
Functionproduct_array_without_current_element
(nums: List[int])
python3/Prefix Sums/product_array_without_current_element.py:4
Methodput
kotlin/Linked Lists/LRUCache.kt:37
Methodput
cpp/Linked Lists/lru_cache.cpp:54
Methodput
(key: number, val: number)
typescript/Linked Lists/lru_cache.ts:42
Methodput
(self, key: int, value: int)
python3/Linked Lists/lru_cache.py:29
FunctionremoveKthLastNode
kotlin/Linked Lists/RemoveKthLastNode.kt:8
FunctionremoveKthLastNode
cpp/Linked Lists/remove_kth_last_node.cpp:13
FunctionremoveKthLastNode
(head: ListNode | null, k: number)
typescript/Linked Lists/remove_kth_last_node.ts:12
MethodremoveKthLastNode
(ListNode head, int k)
java/Linked Lists/RemoveKthLastNode.java:18
MethodremoveNode
kotlin/Linked Lists/LRUCache.kt:62
MethodremoveNode
cpp/Linked Lists/lru_cache.cpp:84
MethodremoveNode
(DoublyLinkedListNode node)
csharp/Linked Lists/LRUCache.cs:88
Functionremove_kth_last_node
(head: ListNode, k: int)
python3/Linked Lists/remove_kth_last_node.py:12
FunctionrepeatedRemovalOfAdjacentDuplicates
kotlin/Stacks/RepeatedRemovalOfAdjacentDuplicates.kt:3
FunctionrepeatedRemovalOfAdjacentDuplicates
cpp/Stacks/repeated_removal_of_adjacent_duplicates.cpp:4
MethodrepeatedRemovalOfAdjacentDuplicates
(String s)
java/Stacks/RepeatedRemovalOfAdjacentDuplicates.java:4
Functionrepeated_removal_of_adjacent_duplicates
(s: str)
python3/Stacks/repeated_removal_of_adjacent_duplicates.py:1
Functionreverse32BitInteger
kotlin/Math and Geometry/Reverse32BitInteger.kt:1
Functionreverse32BitInteger
cpp/Math and Geometry/reverse_32_bit_integer.cpp:3
MethodreverseList
From the 'Reverse Linked List' problem.
csharp/Linked Lists/PalindromicLinkedList.cs:46
Functionreverse_32_bit_integer
(n: int)
python3/Math and Geometry/reverse_32_bit_integer.py:4
FunctionrightmostNodesOfABinaryTree
kotlin/Trees/RightmostNodesOfABinaryTree.kt:14
FunctionrightmostNodesOfABinaryTree
cpp/Trees/rightmost_nodes_of_a_binary_tree.cpp:17
MethodrightmostNodesOfABinaryTree
(TreeNode root)
java/Trees/RightmostNodesOfABinaryTree.java:21
Functionrightmost_nodes_of_a_binary_tree
(root: TreeNode)
python3/Trees/rightmost_nodes_of_a_binary_tree.py:14
Methodsearch
kotlin/Tries/InsertAndSearchWordsWithWildcards.kt:20
Methodsearch
kotlin/Tries/DesignATrie.kt:24
Methodsearch
cpp/Tries/insert_and_search_words_with_wildcards.cpp:37
Methodsearch
cpp/Tries/design_a_trie.cpp:41
Methodsearch
(self, word: str)
python3/Tries/insert_and_search_words_with_wildcards.py:18
Methodsearch
(self, word: str)
python3/Tries/design_a_trie.py:23
Methodsearch
(String word)
java/Tries/DesignATrie.java:33
Methodsearch
(String word)
java/Tries/InsertAndSearchWordsWithWildcards.java:29
MethodsearchHelper
kotlin/Tries/InsertAndSearchWordsWithWildcards.kt:25
MethodsearchHelper
cpp/Tries/insert_and_search_words_with_wildcards.cpp:45
Methodselect
kotlin/Binary Search/WeightRandomSelection.kt:11
Methodselect
cpp/Binary Search/weighted_random_selection.cpp:20
Methodselect
(self)
python3/Binary Search/weighted_random_selection.py:11
Methodselect
()
java/Binary Search/WeightedRandomSelection.java:11
Functionserialize
kotlin/Trees/SerializeAndDeserializeABinaryTree.kt:14
Functionserialize
cpp/Trees/serialize_and_deserialize_a_binary_tree.cpp:17
Functionserialize
(root: TreeNode)
python3/Trees/serialize_and_deserialize_a_binary_tree.py:14
Methodserialize
(TreeNode root)
java/Trees/SerializeAndDeserializeABinaryTree.java:21
FunctionshiftZerosToTheEnd
kotlin/Two Pointers/ShiftZeroToTheEnd.kt:1
FunctionshiftZerosToTheEnd
cpp/Two Pointers/shift_zeros_to_the_end.cpp:4
← previousnext →801–900 of 1,014, ranked by callers