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
knapsack_optimized
(cap: int, weights: List[int], values: List[int])
python3/Dynamic Programming/knapsack_optimized.py:4
Function
kthLargestIntegerMinHeap
kotlin/Sort and Search/KthLargestIntegerMinHeap.kt:3
Function
kthLargestIntegerMinHeap
cpp/Sort and Search/kth_largest_integer_min_heap.cpp:4
Method
kthLargestIntegerMinHeap
(int[] nums, int k)
java/Sort and Search/KthLargestIntegerMinHeap.java:4
Function
kthLargestIntegerQuickselect
kotlin/Sort and Search/KthLargestIntegerQuickselect.kt:1
Function
kthLargestIntegerQuickselect
cpp/Sort and Search/kth_largest_integer_quickselect.cpp:5
Method
kthLargestIntegerQuickselect
(int[] nums, int k)
java/Sort and Search/KthLargestIntegerQuickselect.java:2
Function
kthSmallestNumberInBSTIterative
kotlin/Trees/KthSmallestNumberInBSTIterative.kt:14
Function
kthSmallestNumberInBSTIterative
cpp/Trees/kth_smallest_number_in_BST_iterative.cpp:16
Method
kthSmallestNumberInBSTIterative
(TreeNode root, int k)
java/Trees/KthSmallestNumberInBSTIterative.java:18
Function
kthSmallestNumberInBSTRecursive
kotlin/Trees/KthSmallestNumberInBSTRecursive.kt:13
Function
kthSmallestNumberInBSTRecursive
cpp/Trees/kth_smallest_number_in_BST_recursive.cpp:16
Method
kthSmallestNumberInBSTRecursive
(TreeNode root, int k)
java/Trees/KthSmallestNumberInBSTRecursive.java:19
Function
kth_largest_integer_min_heap
(nums: List[int], k: int)
python3/Sort and Search/kth_largest_integer_min_heap.py:5
Function
kth_largest_integer_quickselect
(nums: List[int], k: int)
python3/Sort and Search/kth_largest_integer_quickselect.py:5
Function
kth_smallest_number_in_BST_iterative
(root: TreeNode, k: int)
python3/Trees/kth_smallest_number_in_BST_iterative.py:13
Function
kth_smallest_number_in_BST_recursive
(root: TreeNode, k: int)
python3/Trees/kth_smallest_number_in_BST_recursive.py:14
Function
largestContainer
kotlin/Two Pointers/LargestContainer.kt:4
Function
largestContainer
cpp/Two Pointers/largest_container.cpp:4
Function
largestContainer
(heights: number[])
typescript/Two Pointers/largest_container.ts:1
Function
largestContainer
(heights []int)
go/Two Pointers/largest_container.go:1
Method
largestContainer
(int[] height)
java/Two Pointers/LargestContainer.java:2
Function
largestContainerBruteForce
kotlin/Two Pointers/LargestContainerBruteForce.kt:4
Function
largestContainerBruteForce
cpp/Two Pointers/largest_container_brute_force.cpp:4
Function
largestContainerBruteForce
(heights: number[])
typescript/Two Pointers/largest_container_brute_force.ts:1
Method
largestContainerBruteForce
(int[] height)
java/Two Pointers/LargestContainerBruteForce.java:2
Function
largestOverlapOfIntervals
kotlin/Intervals/LargestOverlapOfIntervals.kt:8
Function
largestOverlapOfIntervals
cpp/Intervals/largest_overlap_of_intervals.cpp:15
Method
largestOverlapOfIntervals
(List<Interval> intervals)
java/Intervals/LargestOverlapOfIntervals.java:19
Function
largestSquareInAMatrix
kotlin/Dynamic Programming/LargestSquareInAMatrix.kt:1
Function
largestSquareInAMatrix
cpp/Dynamic Programming/largest_square_in_a_matrix.cpp:4
Method
largestSquareInAMatrix
(int[][] matrix)
java/Dynamic Programming/LargestSquareInAMatrix.java:2
Function
largestSquareInAMatrixOptimized
kotlin/Dynamic Programming/LargestSquareInAMatrixOptimized.kt:1
Function
largestSquareInAMatrixOptimized
cpp/Dynamic Programming/largest_square_in_a_matrix_optimized.cpp:4
Method
largestSquareInAMatrixOptimized
(int[][] matrix)
java/Dynamic Programming/LargestSquareInAMatrixOptimized.java:2
Function
largest_container
(heights: Vec<i32>)
rust/Two Pointers/largest_container.rs:5
Function
largest_container
(heights: List[int])
python3/Two Pointers/largest_container.py:4
Function
largest_container_brute_force
(heights: Vec<i32>)
rust/Two Pointers/largest_container_brute_force.rs:1
Function
largest_container_brute_force
(heights: List[int])
python3/Two Pointers/largest_container_brute_force.py:4
Function
largest_overlap_of_intervals
(intervals: List[Interval])
python3/Intervals/largest_overlap_of_intervals.py:13
Function
largest_square_in_a_matrix
(matrix: List[List[int]])
python3/Dynamic Programming/largest_square_in_a_matrix.py:4
Function
largest_square_in_a_matrix_optimized
(matrix: List[List[int]])
python3/Dynamic Programming/largest_square_in_a_matrix_optimized.py:4
Function
linkedListIntersection
kotlin/Linked Lists/LinkedListIntersection.kt:8
Function
linkedListIntersection
cpp/Linked Lists/linked_list_intersection.cpp:13
Function
linkedListIntersection
(headA: ListNode | null, headB: ListNode | null)
typescript/Linked Lists/linked_list_intersection.ts:13
Method
linkedListIntersection
(ListNode headA, ListNode headB)
java/Linked Lists/LinkedListIntersection.java:18
Function
linkedListLoop
kotlin/Fast and Slow Pointers/LinkedListLoop.kt:6
Function
linkedListLoop
cpp/Fast and Slow Pointers/linked_list_loop.cpp:13
Function
linkedListLoop
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_loop.ts:12
Method
linkedListLoop
(ListNode head)
java/Fast and Slow Pointers/LinkedListLoop.java:18
Function
linkedListLoopNaive
kotlin/Fast and Slow Pointers/LinkedListLoopNaive.kt:6
Function
linkedListLoopNaive
cpp/Fast and Slow Pointers/linked_list_loop_naive.cpp:14
Function
linkedListLoopNaive
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_loop_naive.ts:13
Method
linkedListLoopNaive
(ListNode head)
java/Fast and Slow Pointers/LinkedListLoopNaive.java:21
Function
linkedListMidpoint
kotlin/Fast and Slow Pointers/LinkedListMidpoint.kt:6
Function
linkedListMidpoint
cpp/Fast and Slow Pointers/linked_list_midpoint.cpp:13
Function
linkedListMidpoint
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_midpoint.ts:13
Method
linkedListMidpoint
(ListNode head)
java/Fast and Slow Pointers/LinkedListMidpoint.java:18
Function
linkedListReversal
kotlin/Linked Lists/LinkedListReversal.kt:8
Function
linkedListReversal
cpp/Linked Lists/linked_list_reversal.cpp:13
Function
linkedListReversal
(head: ListNode | null)
typescript/Linked Lists/linked_list_reversal.ts:12
Method
linkedListReversal
(ListNode head)
java/Linked Lists/LinkedListReversal.java:18
Function
linkedListReversalRecursive
kotlin/Linked Lists/LinkedListReversalRecursive.kt:8
Function
linkedListReversalRecursive
cpp/Linked Lists/linked_list_reversal_recursive.cpp:13
Function
linkedListReversalRecursive
(head: ListNode | null)
typescript/Linked Lists/linked_list_reversal_recursive.ts:12
Method
linkedListReversalRecursive
(ListNode head)
java/Linked Lists/LinkedListReversalRecursive.java:18
Function
linked_list_intersection
(head_A: ListNode, head_B: ListNode)
python3/Linked Lists/linked_list_intersection.py:12
Function
linked_list_loop
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_loop.py:12
Function
linked_list_loop_naive
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_loop_naive.py:12
Function
linked_list_midpoint
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_midpoint.py:12
Function
linked_list_reversal
(head: ListNode)
python3/Linked Lists/linked_list_reversal.py:12
Function
linked_list_reversal_recursive
(head: ListNode)
python3/Linked Lists/linked_list_reversal_recursive.py:12
Function
localMaximaInArray
kotlin/Binary Search/LocalMaximaInArray.kt:1
Function
localMaximaInArray
cpp/Binary Search/local_maxima_in_array.cpp:3
Method
localMaximaInArray
(int[] nums)
java/Binary Search/LocalMaximaInArray.java:2
Function
local_maxima_in_array
(nums: List[int])
python3/Binary Search/local_maxima_in_array.py:4
Function
lonelyInteger
kotlin/Bit Manipulation/LonelyInteger.kt:1
Function
lonelyInteger
cpp/Bit Manipulation/lonely_integer.cpp:3
Method
lonelyInteger
(int[] nums)
java/Bit Manipulation/LonelyInteger.java:2
Function
lonely_integer
(nums: List[int])
python3/Bit Manipulation/lonely_integer.py:4
Function
longestChainOfConsecutiveNumbers
kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.kt:1
Function
longestChainOfConsecutiveNumbers
cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers.cpp:5
Function
longestChainOfConsecutiveNumbers
(nums: number[])
typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers.ts:1
Function
longestChainOfConsecutiveNumbers
(nums []int)
go/Hash Maps and Sets/longest_chain_of_consecutive_numbers.go:1
Method
longestChainOfConsecutiveNumbers
(int[] nums)
java/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.java:5
Function
longestChainOfConsecutiveNumbersBruteForce
kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.kt:1
Function
longestChainOfConsecutiveNumbersBruteForce
cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.cpp:4
Function
longestChainOfConsecutiveNumbersBruteForce
(nums: number[])
typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.ts:1
Function
longestChainOfConsecutiveNumbersBruteForce
(nums []int)
go/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.go:1
Method
longestChainOfConsecutiveNumbersBruteForce
(int[] nums)
java/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.java:2
Function
longestCommonSubsequence
kotlin/Dynamic Programming/LongestCommonSubsequence.kt:1
Function
longestCommonSubsequence
cpp/Dynamic Programming/longest_common_subsequence.cpp:5
Method
longestCommonSubsequence
(String s1, String s2)
java/Dynamic Programming/LongestCommonSubsequence.java:2
Function
longestCommonSubsequenceOptimized
kotlin/Dynamic Programming/LongestCommonSubsequenceOptimized.kt:1
Function
longestCommonSubsequenceOptimized
cpp/Dynamic Programming/longest_common_subsequence_optimized.cpp:5
Method
longestCommonSubsequenceOptimized
(String s1, String s2)
java/Dynamic Programming/LongestCommonSubsequenceOptimized.java:2
Function
longestIncreasingPath
kotlin/Graphs/LongestIncreasingPath.kt:1
Function
longestIncreasingPath
cpp/Graphs/longest_increasing_path.cpp:4
Method
longestIncreasingPath
(int[][] matrix)
java/Graphs/LongestIncreasingPath.java:2
Function
longestPalindromeInAString
kotlin/Dynamic Programming/LongestPalindromeInAString.kt:1
← previous
next →
601–700 of 1,014, ranked by callers