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
↓ 1 callers
Function
dfs
kotlin/Tries/FindAllWordsOnABoard.kt:33
↓ 1 callers
Function
dfs
kotlin/Trees/LowestCommonAncestor.kt:19
↓ 1 callers
Function
dfs
cpp/Graphs/graph_deep_copy.cpp:27
↓ 1 callers
Function
dfs
cpp/Graphs/bipartite_graph_validation.cpp:14
↓ 1 callers
Function
dfs
cpp/Graphs/longest_increasing_path.cpp:23
↓ 1 callers
Function
dfs
cpp/Backtracking/combinations_of_sum_k.cpp:10
↓ 1 callers
Function
dfs
cpp/Backtracking/n_queens.cpp:12
↓ 1 callers
Function
dfs
cpp/Tries/find_all_words_on_a_board.cpp:47
↓ 1 callers
Function
dfs
cpp/Trees/lowest_common_ancestor.cpp:21
↓ 1 callers
Function
dfs
(r: int, c: int, matrix: List[List[int]])
python3/Graphs/count_islands.py:17
↓ 1 callers
Function
dfs
(node: GraphNode, clone_map = {})
python3/Graphs/graph_deep_copy.py:17
↓ 1 callers
Function
dfs
(node: int, color: int, graph: List[List[int]], colors: List[int])
python3/Graphs/bipartite_graph_validation.py:12
↓ 1 callers
Function
dfs
(r: int, c: int, matrix: List[List[int]], memo: List[List[int]])
python3/Graphs/longest_increasing_path.py:18
↓ 1 callers
Function
dfs
(r: int, diagonals_set: Set[int], anti_diagonals_set: Set[int], cols_set: Set[int], n: int)
python3/Backtracking/n_queens.py:9
↓ 1 callers
Function
dfs
(combination: List[int], start_index: int, nums: List[int], target: int, res: List[List[int]])
python3/Backtracking/combinations_of_sum_k.py:9
↓ 1 callers
Function
dfs
(board: List[List[str]], r: int, c: int, node: TrieNode, res: List[str])
python3/Tries/find_all_words_on_a_board.py:28
↓ 1 callers
Function
dfs
(node: TreeNode, p: TreeNode, q: TreeNode)
python3/Trees/lowest_common_ancestor.py:17
↓ 1 callers
Method
dfs
(GraphNode node, Map<GraphNode, GraphNode> cloneMap)
java/Graphs/GraphDeepCopy.java:27
↓ 1 callers
Method
dfs
(int node, int color, int[][] graph, int[] colors)
java/Graphs/BipartiteGraphValidation.java:13
↓ 1 callers
Method
dfs
(int r, int c, int[][] matrix)
java/Graphs/CountIslands.java:20
↓ 1 callers
Method
dfs
(int r, int c, int[][] matrix, int[][] memo)
java/Graphs/LongestIncreasingPath.java:21
↓ 1 callers
Method
dfs
(List<Integer> combination, int startIndex, int[] nums, int target, List<List<Integer>> res)
java/Backtracking/CombinationsOfSumK.java:11
↓ 1 callers
Method
dfs
(int r, Set<Integer> diagonalsSet, Set<Integer> antiDiagonalsSet, Set<Integer> colsSet, int n)
java/Backtracking/NQueens.java:12
↓ 1 callers
Method
dfs
(char[][] board, int r, int c, TrieNode node, List<String> res)
java/Tries/FindAllWordsOnABoard.java:41
↓ 1 callers
Method
dfs
(TreeNode node, TreeNode p, TreeNode q)
java/Trees/LowestCommonAncestor.java:23
↓ 1 callers
Method
existInArray
(int[] nums, int target)
java/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.java:21
↓ 1 callers
Function
findMiddle
From the 'Linked List Midpoint' problem.
kotlin/Linked Lists/PalindromicLinkedList.kt:41
↓ 1 callers
Function
findMiddle
(head: ListNode | null)
typescript/Linked Lists/palindromic_linked_list.ts:43
↓ 1 callers
Method
findMiddle
(ListNode head)
java/Linked Lists/PalindromicLinkedList.java:51
↓ 1 callers
Function
find_middle
(head: ListNode)
python3/Linked Lists/palindromic_linked_list.py:37
↓ 1 callers
Method
get
kotlin/Linked Lists/LRUCache.kt:25
↓ 1 callers
Method
get
(key: number)
typescript/Linked Lists/lru_cache.ts:31
↓ 1 callers
Function
getHeightImbalance
kotlin/Trees/BalancedBinaryTreeValidation.kt:17
↓ 1 callers
Function
getHeightImbalance
cpp/Trees/balanced_binary_tree_validation.cpp:19
↓ 1 callers
Method
getHeightImbalance
(TreeNode node)
java/Trees/BalancedBinaryTreeValidation.java:20
↓ 1 callers
Method
getSize
kotlin/Graphs/MergingCommunities.kt:33
↓ 1 callers
Method
getSize
cpp/Graphs/merging_communities.cpp:41
↓ 1 callers
Method
getSize
(int x)
java/Graphs/MergingCommunities.java:43
↓ 1 callers
Function
getSlope
kotlin/Math and Geometry/MaximumCollinearPoints.kt:33
↓ 1 callers
Function
getSlope
cpp/Math and Geometry/maximum_collinear_points.cpp:37
↓ 1 callers
Function
get_height_imbalance
(node: TreeNode)
python3/Trees/balanced_binary_tree_validation.py:16
↓ 1 callers
Method
get_size
(self, x: int)
python3/Graphs/merging_communities.py:26
↓ 1 callers
Function
get_slope
(p1: List[int], p2: List[int])
python3/Math and Geometry/maximum_collinear_points.py:31
↓ 1 callers
Function
inorder
Inorder traversal function to attain a sorted list of nodes from the BST.
kotlin/Trees/KthSmallestNumberInBSTRecursive.kt:19
↓ 1 callers
Function
inorder
Inorder traversal function to attain a sorted list of nodes from the BST.
cpp/Trees/kth_smallest_number_in_BST_recursive.cpp:22
↓ 1 callers
Function
inorder
(node: TreeNode)
python3/Trees/kth_smallest_number_in_BST_recursive.py:19
↓ 1 callers
Method
inorder
(TreeNode node, List<Integer> sortedList)
java/Trees/KthSmallestNumberInBSTRecursive.java:26
↓ 1 callers
Function
isWithinBounds
kotlin/Graphs/CountIslands.kt:35
↓ 1 callers
Function
isWithinBounds
kotlin/Graphs/LongestIncreasingPath.kt:38
↓ 1 callers
Function
isWithinBounds
kotlin/Graphs/MatrixInfection.kt:47
↓ 1 callers
Function
isWithinBounds
kotlin/Tries/FindAllWordsOnABoard.kt:58
↓ 1 callers
Function
isWithinBounds
kotlin/Trees/BinarySearchTreeValidation.kt:20
↓ 1 callers
Function
isWithinBounds
cpp/Graphs/matrix_infection.cpp:46
↓ 1 callers
Function
isWithinBounds
cpp/Graphs/count_islands.cpp:37
↓ 1 callers
Function
isWithinBounds
cpp/Graphs/longest_increasing_path.cpp:42
↓ 1 callers
Function
isWithinBounds
cpp/Tries/find_all_words_on_a_board.cpp:73
↓ 1 callers
Function
isWithinBounds
cpp/Trees/binary_search_tree_validation.cpp:23
↓ 1 callers
Method
isWithinBounds
(int r, int c, int[][] matrix)
java/Graphs/CountIslands.java:36
↓ 1 callers
Method
isWithinBounds
(int r, int c, int[][] matrix)
java/Graphs/MatrixInfection.java:50
↓ 1 callers
Method
isWithinBounds
(int r, int c, int[][] matrix)
java/Graphs/LongestIncreasingPath.java:40
↓ 1 callers
Method
isWithinBounds
(int r, int c, char[][] board)
java/Tries/FindAllWordsOnABoard.java:66
↓ 1 callers
Method
isWithinBounds
(TreeNode node, Integer lowerBound, Integer upperBound)
java/Trees/BinarySearchTreeValidation.java:22
↓ 1 callers
Function
is_within_bounds
(r: int, c: int, matrix: List[List[int]])
python3/Graphs/count_islands.py:29
↓ 1 callers
Function
is_within_bounds
(r: int, c: int, matrix: List[List[int]])
python3/Graphs/matrix_infection.py:37
↓ 1 callers
Function
is_within_bounds
(r: int, c: int, matrix: List[List[int]])
python3/Graphs/longest_increasing_path.py:32
↓ 1 callers
Function
is_within_bounds
(r: int, c: int, board: List[str])
python3/Tries/find_all_words_on_a_board.py:48
↓ 1 callers
Function
is_within_bounds
(node: TreeNode, lower_bound: int, upper_bound: int)
python3/Trees/binary_search_tree_validation.py:19
↓ 1 callers
Function
lowerBoundBinarySearch
kotlin/Binary Search/FirstAndLastOccurrencesOfANumber.kt:7
↓ 1 callers
Method
lowerBoundBinarySearch
(int[] nums, int target)
java/Binary Search/FirstAndLastOccurrencesOfANumber.java:8
↓ 1 callers
Function
lower_bound_binary_search
(nums: List[int], target: int)
python3/Binary Search/first_and_last_occurrences_of_a_number.py:9
↓ 1 callers
Function
maxPathSumHelper
kotlin/Trees/MaximumPathSum.kt:21
↓ 1 callers
Function
maxPathSumHelper
cpp/Trees/maximum_path_sum.cpp:23
↓ 1 callers
Method
maxPathSumHelper
(TreeNode node)
java/Trees/MaximumPathSum.java:23
↓ 1 callers
Function
maxPointsFromFocalPoint
kotlin/Math and Geometry/MaximumCollinearPoints.kt:14
↓ 1 callers
Function
maxPointsFromFocalPoint
cpp/Math and Geometry/maximum_collinear_points.cpp:18
↓ 1 callers
Function
max_path_sum_helper
(node: TreeNode)
python3/Trees/maximum_path_sum.py:20
↓ 1 callers
Function
max_points_from_focal_point
(focal_point_index: int, points: List[List[int]])
python3/Math and Geometry/maximum_collinear_points.py:15
↓ 1 callers
Function
merge
kotlin/Sort and Search/SortLinkedList.kt:36
↓ 1 callers
Function
merge
cpp/Sort and Search/sort_linked_list.cpp:41
↓ 1 callers
Function
merge
(l1: ListNode, l2: ListNode)
python3/Sort and Search/sort_linked_list.py:35
↓ 1 callers
Method
merge
(ListNode l1, ListNode l2)
java/Sort and Search/SortLinkedList.java:45
↓ 1 callers
Function
pairSumSortedAllPairs
kotlin/Two Pointers/TripletSum.kt:24
↓ 1 callers
Function
pairSumSortedAllPairs
cpp/Two Pointers/triplet_sum.cpp:30
↓ 1 callers
Function
pairSumSortedAllPairs
(nums: number[], start: number, target: number)
typescript/Two Pointers/triplet_sum.ts:22
↓ 1 callers
Function
pairSumSortedAllPairs
(nums []int, start int, target int)
go/Two Pointers/triplet_sum.go:29
↓ 1 callers
Method
pairSumSortedAllPairs
(int[] nums, int start, int target)
java/Two Pointers/TripletSum.java:28
↓ 1 callers
Function
pair_sum_sorted_all_pairs
(nums: &Vec<i32>, start: usize, target: i32)
rust/Two Pointers/triplet_sum.rs:29
↓ 1 callers
Function
pair_sum_sorted_all_pairs
(nums: List[int], start: int, target: int)
python3/Two Pointers/triplet_sum.py:23
↓ 1 callers
Function
partition
kotlin/Sort and Search/KthLargestIntegerQuickselect.kt:29
↓ 1 callers
Function
partition
kotlin/Sort and Search/SortArrayQuicksortOptimized.kt:20
↓ 1 callers
Function
partition
kotlin/Sort and Search/SortArrayQuicksort.kt:20
↓ 1 callers
Function
partition
cpp/Sort and Search/kth_largest_integer_quickselect.cpp:36
↓ 1 callers
Function
partition
cpp/Sort and Search/sort_array_quicksort.cpp:23
↓ 1 callers
Function
partition
cpp/Sort and Search/sort_array_quicksort_optimized.cpp:26
↓ 1 callers
Function
partition
(nums: List[int], left: int, right: int)
python3/Sort and Search/sort_array_quicksort.py:20
↓ 1 callers
Function
partition
(nums: List[int], left: int, right: int)
python3/Sort and Search/sort_array_quicksort_optimized.py:21
↓ 1 callers
Function
partition
(nums: List[int], left: int, right: int)
python3/Sort and Search/kth_largest_integer_quickselect.py:29
↓ 1 callers
Method
partition
(int[] nums, int left, int right)
java/Sort and Search/SortArrayQuicksortOptimized.java:21
↓ 1 callers
Method
partition
(int[] nums, int left, int right)
java/Sort and Search/SortArrayQuicksort.java:19
↓ 1 callers
Method
partition
(int[] nums, int left, int right)
java/Sort and Search/KthLargestIntegerQuickselect.java:24
← previous
next →
101–200 of 1,014, ranked by callers