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
candies
(ratings: List[int])
python3/Greedy/candies.py:4
Method
candies
(int[] ratings)
java/Greedy/Candies.java:4
Function
climbingStairsBottomUp
kotlin/Dynamic Programming/ClimbingStairsBottomUp.kt:1
Function
climbingStairsBottomUp
cpp/Dynamic Programming/climbing_stairs_bottom_up.cpp:3
Method
climbingStairsBottomUp
(int n)
java/Dynamic Programming/ClimbingStairsBottomUp.java:2
Function
climbingStairsBottomUpOptimized
kotlin/Dynamic Programming/ClimbingStairsBottomUpOptimize.kt:1
Function
climbingStairsBottomUpOptimized
cpp/Dynamic Programming/climbing_stairs_bottom_up_optimized.cpp:1
Method
climbingStairsBottomUpOptimized
(int n)
java/Dynamic Programming/ClimbingStairsBottomUpOptimized.java:2
Function
climbingStairsTopDown
kotlin/Dynamic Programming/ClimbingStairsTopDown.kt:1
Function
climbingStairsTopDown
cpp/Dynamic Programming/climbing_stairs_top_down.cpp:3
Method
climbingStairsTopDown
(int n)
java/Dynamic Programming/ClimbingStairsTopDown.java:7
Function
climbing_stairs_bottom_up
(n: int)
python3/Dynamic Programming/climbing_stairs_bottom_up.py:1
Function
climbing_stairs_bottom_up_optimized
(n: int)
python3/Dynamic Programming/climbing_stairs_bottom_up_optimized.py:1
Function
climbing_stairs_top_down
(n: int)
python3/Dynamic Programming/climbing_stairs_top_down.py:3
Function
combinationsOfSumK
kotlin/Backtracking/CombinationsOfSumK.kt:1
Function
combinationsOfSumK
cpp/Backtracking/combinations_of_sum_k.cpp:3
Method
combinationsOfSumK
(int[] nums, int target)
java/Backtracking/CombinationsOfSumK.java:5
Function
combinations_of_sum_k
(nums: List[int], target: int)
python3/Backtracking/combinations_of_sum_k.py:4
Function
combineSortedLinkedLists
kotlin/Heaps/CombineSortedLinkedList.kt:9
Function
combineSortedLinkedLists
cpp/Heaps/combine_sorted_linked_lists.cpp:15
Method
combineSortedLinkedLists
(List<ListNode> lists)
java/Heaps/CombineSortedLinkedLists.java:17
Function
combine_sorted_linked_lists
(lists: List[ListNode])
python3/Heaps/combine_sorted_linked_lists.py:14
Method
compareTo
(Pair other)
java/Heaps/KMostFrequentStringsMaxHeap.java:17
Method
connect
kotlin/Graphs/MergingCommunities.kt:42
Method
connect
cpp/Graphs/merging_communities.cpp:51
Method
connect
(self, x: int, y: int)
python3/Graphs/merging_communities.py:34
Method
connect
(int x, int y)
java/Graphs/MergingCommunities.java:55
Function
connectTheDots
kotlin/Graphs/ConnectTheDots.kt:32
Function
connectTheDots
cpp/Graphs/connect_the_dots.cpp:45
Method
connectTheDots
(int[][] points)
java/Graphs/ConnectTheDots.java:48
Function
connect_the_dots
(points: List[List[int]])
python3/Graphs/connect_the_dots.py:31
Method
constructor
(key: number, val: number)
typescript/Linked Lists/lru_cache.ts:6
Method
constructor
(capacity: number)
typescript/Linked Lists/lru_cache.ts:19
Function
countIslands
kotlin/Graphs/CountIslands.kt:1
Function
countIslands
cpp/Graphs/count_islands.cpp:3
Method
countIslands
(int[][] matrix)
java/Graphs/CountIslands.java:2
Function
count_islands
(matrix: List[List[int]])
python3/Graphs/count_islands.py:4
Method
cutsEnoughWood
(int H, int k, int[] heights)
csharp/Binary Search/CuttingWood.cs:21
Function
cuttingWood
kotlin/Binary Search/CuttingWood.kt:1
Function
cuttingWood
cpp/Binary Search/cutting_wood.cpp:4
Function
cutting_wood
(heights: List[int], k: int)
python3/Binary Search/cutting_wood.py:4
Method
cuttingwood
(int[] heights, int k)
java/Binary Search/CuttingWood.java:4
Method
dequeue
kotlin/Stacks/ImplementAQueueUsingAStack.kt:23
Method
dequeue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:24
Method
dequeue
(self)
python3/Stacks/implement_a_queue_using_a_stack.py:17
Method
dequeue
()
java/Stacks/ImplementAQueueUsingAStack.java:27
Function
deserialize
kotlin/Trees/SerializeAndDeserializeABinaryTree.kt:38
Function
deserialize
cpp/Trees/serialize_and_deserialize_a_binary_tree.cpp:39
Function
deserialize
(data: str)
python3/Trees/serialize_and_deserialize_a_binary_tree.py:35
Method
deserialize
(String data)
java/Trees/SerializeAndDeserializeABinaryTree.java:43
Method
dfs
(List<int> combination, int startIndex, int[] nums, int target, List<int[]> res)
csharp/Backtracking/CombinationsOfSumK.cs:11
Method
dfs
(int r, ISet<int> diagonalsSet, ISet<int> antiDiagonalsSet, ISet<int> colsSet, int n)
csharp/Backtracking/NQueens.cs:12
Function
dutchNationalFlag
kotlin/Sort and Search/DutchNationalFlag.kt:1
Function
dutchNationalFlag
cpp/Sort and Search/dutch_national_flag.cpp:4
Method
dutchNationalFlag
(int[] nums)
java/Sort and Search/DutchNationalFlag.java:2
Function
dutch_national_flag
(nums: List[int])
python3/Sort and Search/dutch_national_flag.py:4
Method
enqueue
kotlin/Stacks/ImplementAQueueUsingAStack.kt:8
Method
enqueue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:8
Method
enqueue
(self, x: int)
python3/Stacks/implement_a_queue_using_a_stack.py:6
Method
enqueue
(int x)
java/Stacks/ImplementAQueueUsingAStack.java:12
Function
evaluateExpression
kotlin/Stacks/EvaluateExpression.kt:3
Function
evaluateExpression
cpp/Stacks/evaluate_expression.cpp:4
Method
evaluateExpression
(String s)
java/Stacks/EvaluateExpression.java:4
Function
evaluate_expression
(s: str)
python3/Stacks/evaluate_expression.py:1
Method
find
kotlin/Graphs/MergingCommunities.kt:24
Function
findAllPermutations
kotlin/Backtracking/FindAllPermutations.kt:1
Function
findAllPermutations
cpp/Backtracking/find_all_permutations.cpp:4
Method
findAllPermutations
(int[] nums)
java/Backtracking/FindAllPermutations.java:7
Function
findAllSubsets
kotlin/Backtracking/FindAllSubsets.kt:1
Function
findAllSubsets
cpp/Backtracking/find_all_subsets.cpp:3
Method
findAllSubsets
(int[] nums)
java/Backtracking/FindAllSubsets.java:5
Function
findAllWordsOnABoard
kotlin/Tries/FindAllWordsOnABoard.kt:6
Function
findAllWordsOnABoard
cpp/Tries/find_all_words_on_a_board.cpp:17
Method
findAllWordsOnABoard
(char[][] board, String[] words)
java/Tries/FindAllWordsOnABoard.java:16
Method
findMiddle
From the 'Linked List Midpoint' problem.
csharp/Linked Lists/PalindromicLinkedList.cs:63
Method
findSet
cpp/Graphs/connect_the_dots.cpp:36
Method
findSet
cpp/Graphs/merging_communities.cpp:32
Function
findTheInsertionIndex
kotlin/Binary Search/FindTheInsertionIndex.kt:1
Function
findTheInsertionIndex
cpp/Binary Search/find_the_insertion_index.cpp:3
Method
findTheInsertionIndex
(int[] nums, int target)
java/Binary Search/FindTheInsertionIndex.java:2
Function
findTheMedianFromTwoSortedArrays
kotlin/Binary Search/FindTheMedianFromTwoSortedArray.kt:1
Function
findTheMedianFromTwoSortedArrays
cpp/Binary Search/find_the_median_from_two_sorted_arrays.cpp:6
Method
findTheMedianFromTwoSortedArrays
(int[] nums1, int[] nums2)
java/Binary Search/FindTheMedianFromTwoSortedArrays.java:4
Function
findTheTargetInARotatedSortedArray
kotlin/Binary Search/FindTheTargetInARotatedSortedArray.kt:1
Function
findTheTargetInARotatedSortedArray
cpp/Binary Search/find_the_target_in_a_rotated_sorted_array.cpp:3
Method
findTheTargetInARotatedSortedArray
(int[] nums, int target)
java/Binary Search/FindTheTargetInARotatedSortedArray.java:2
Function
find_all_permutations
(nums: List[int])
python3/Backtracking/find_all_permutations.py:4
Function
find_all_subsets
(nums: List[int])
python3/Backtracking/find_all_subsets.py:4
Function
find_all_words_on_a_board
(board: List[List[str]], words: List[str])
python3/Tries/find_all_words_on_a_board.py:8
Function
find_the_insertion_index
(nums: List[int], target: int)
python3/Binary Search/find_the_insertion_index.py:4
Function
find_the_median_from_two_sorted_arrays
(nums1: List[int], nums2: List[int])
python3/Binary Search/find_the_median_from_two_sorted_arrays.py:4
Function
find_the_target_in_a_rotated_sorted_array
(nums: List[int], target: int)
python3/Binary Search/find_the_target_in_a_rotated_sorted_array.py:4
Function
firstAndLastOccurrencesOfANumber
kotlin/Binary Search/FirstAndLastOccurrencesOfANumber.kt:1
Function
firstAndLastOccurrencesOfANumber
cpp/Binary Search/first_and_last_occurrences_of_a_number.cpp:3
Method
firstAndLastOccurrencesOfANumber
(int[] nums, int target)
java/Binary Search/FirstAndLastOccurrencesOfANumber.java:2
Function
first_and_last_occurrences_of_a_number
(nums: List[int], target: int)
python3/Binary Search/first_and_last_occurrences_of_a_number.py:4
Function
flattenMultiLevelList
kotlin/Linked Lists/FlattenMultiLevelList.kt:12
Function
flattenMultiLevelList
cpp/Linked Lists/flatten_multi_level_list.cpp:16
Function
flattenMultiLevelList
(head: MultiLevelListNode | null)
typescript/Linked Lists/flatten_multi_level_list.ts:16
Method
flattenMultiLevelList
(MultiLevelListNode head)
java/Linked Lists/FlattenMultiLevelList.java:20
← previous
next →
401–500 of 1,014, ranked by callers