MCPcopy Create free account

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

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

Functionknapsack_optimized
(cap: int, weights: List[int], values: List[int])
python3/Dynamic Programming/knapsack_optimized.py:4
FunctionkthLargestIntegerMinHeap
kotlin/Sort and Search/KthLargestIntegerMinHeap.kt:3
FunctionkthLargestIntegerMinHeap
cpp/Sort and Search/kth_largest_integer_min_heap.cpp:4
MethodkthLargestIntegerMinHeap
(int[] nums, int k)
java/Sort and Search/KthLargestIntegerMinHeap.java:4
FunctionkthLargestIntegerQuickselect
kotlin/Sort and Search/KthLargestIntegerQuickselect.kt:1
FunctionkthLargestIntegerQuickselect
cpp/Sort and Search/kth_largest_integer_quickselect.cpp:5
MethodkthLargestIntegerQuickselect
(int[] nums, int k)
java/Sort and Search/KthLargestIntegerQuickselect.java:2
FunctionkthSmallestNumberInBSTIterative
kotlin/Trees/KthSmallestNumberInBSTIterative.kt:14
FunctionkthSmallestNumberInBSTIterative
cpp/Trees/kth_smallest_number_in_BST_iterative.cpp:16
MethodkthSmallestNumberInBSTIterative
(TreeNode root, int k)
java/Trees/KthSmallestNumberInBSTIterative.java:18
FunctionkthSmallestNumberInBSTRecursive
kotlin/Trees/KthSmallestNumberInBSTRecursive.kt:13
FunctionkthSmallestNumberInBSTRecursive
cpp/Trees/kth_smallest_number_in_BST_recursive.cpp:16
MethodkthSmallestNumberInBSTRecursive
(TreeNode root, int k)
java/Trees/KthSmallestNumberInBSTRecursive.java:19
Functionkth_largest_integer_min_heap
(nums: List[int], k: int)
python3/Sort and Search/kth_largest_integer_min_heap.py:5
Functionkth_largest_integer_quickselect
(nums: List[int], k: int)
python3/Sort and Search/kth_largest_integer_quickselect.py:5
Functionkth_smallest_number_in_BST_iterative
(root: TreeNode, k: int)
python3/Trees/kth_smallest_number_in_BST_iterative.py:13
Functionkth_smallest_number_in_BST_recursive
(root: TreeNode, k: int)
python3/Trees/kth_smallest_number_in_BST_recursive.py:14
FunctionlargestContainer
kotlin/Two Pointers/LargestContainer.kt:4
FunctionlargestContainer
cpp/Two Pointers/largest_container.cpp:4
FunctionlargestContainer
(heights: number[])
typescript/Two Pointers/largest_container.ts:1
FunctionlargestContainer
(heights []int)
go/Two Pointers/largest_container.go:1
MethodlargestContainer
(int[] height)
java/Two Pointers/LargestContainer.java:2
FunctionlargestContainerBruteForce
kotlin/Two Pointers/LargestContainerBruteForce.kt:4
FunctionlargestContainerBruteForce
cpp/Two Pointers/largest_container_brute_force.cpp:4
FunctionlargestContainerBruteForce
(heights: number[])
typescript/Two Pointers/largest_container_brute_force.ts:1
MethodlargestContainerBruteForce
(int[] height)
java/Two Pointers/LargestContainerBruteForce.java:2
FunctionlargestOverlapOfIntervals
kotlin/Intervals/LargestOverlapOfIntervals.kt:8
FunctionlargestOverlapOfIntervals
cpp/Intervals/largest_overlap_of_intervals.cpp:15
MethodlargestOverlapOfIntervals
(List<Interval> intervals)
java/Intervals/LargestOverlapOfIntervals.java:19
FunctionlargestSquareInAMatrix
kotlin/Dynamic Programming/LargestSquareInAMatrix.kt:1
FunctionlargestSquareInAMatrix
cpp/Dynamic Programming/largest_square_in_a_matrix.cpp:4
MethodlargestSquareInAMatrix
(int[][] matrix)
java/Dynamic Programming/LargestSquareInAMatrix.java:2
FunctionlargestSquareInAMatrixOptimized
kotlin/Dynamic Programming/LargestSquareInAMatrixOptimized.kt:1
FunctionlargestSquareInAMatrixOptimized
cpp/Dynamic Programming/largest_square_in_a_matrix_optimized.cpp:4
MethodlargestSquareInAMatrixOptimized
(int[][] matrix)
java/Dynamic Programming/LargestSquareInAMatrixOptimized.java:2
Functionlargest_container
(heights: Vec<i32>)
rust/Two Pointers/largest_container.rs:5
Functionlargest_container
(heights: List[int])
python3/Two Pointers/largest_container.py:4
Functionlargest_container_brute_force
(heights: Vec<i32>)
rust/Two Pointers/largest_container_brute_force.rs:1
Functionlargest_container_brute_force
(heights: List[int])
python3/Two Pointers/largest_container_brute_force.py:4
Functionlargest_overlap_of_intervals
(intervals: List[Interval])
python3/Intervals/largest_overlap_of_intervals.py:13
Functionlargest_square_in_a_matrix
(matrix: List[List[int]])
python3/Dynamic Programming/largest_square_in_a_matrix.py:4
Functionlargest_square_in_a_matrix_optimized
(matrix: List[List[int]])
python3/Dynamic Programming/largest_square_in_a_matrix_optimized.py:4
FunctionlinkedListIntersection
kotlin/Linked Lists/LinkedListIntersection.kt:8
FunctionlinkedListIntersection
cpp/Linked Lists/linked_list_intersection.cpp:13
FunctionlinkedListIntersection
(headA: ListNode | null, headB: ListNode | null)
typescript/Linked Lists/linked_list_intersection.ts:13
MethodlinkedListIntersection
(ListNode headA, ListNode headB)
java/Linked Lists/LinkedListIntersection.java:18
FunctionlinkedListLoop
kotlin/Fast and Slow Pointers/LinkedListLoop.kt:6
FunctionlinkedListLoop
cpp/Fast and Slow Pointers/linked_list_loop.cpp:13
FunctionlinkedListLoop
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_loop.ts:12
MethodlinkedListLoop
(ListNode head)
java/Fast and Slow Pointers/LinkedListLoop.java:18
FunctionlinkedListLoopNaive
kotlin/Fast and Slow Pointers/LinkedListLoopNaive.kt:6
FunctionlinkedListLoopNaive
cpp/Fast and Slow Pointers/linked_list_loop_naive.cpp:14
FunctionlinkedListLoopNaive
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_loop_naive.ts:13
MethodlinkedListLoopNaive
(ListNode head)
java/Fast and Slow Pointers/LinkedListLoopNaive.java:21
FunctionlinkedListMidpoint
kotlin/Fast and Slow Pointers/LinkedListMidpoint.kt:6
FunctionlinkedListMidpoint
cpp/Fast and Slow Pointers/linked_list_midpoint.cpp:13
FunctionlinkedListMidpoint
(head: ListNode | null)
typescript/Fast and Slow Pointers/linked_list_midpoint.ts:13
MethodlinkedListMidpoint
(ListNode head)
java/Fast and Slow Pointers/LinkedListMidpoint.java:18
FunctionlinkedListReversal
kotlin/Linked Lists/LinkedListReversal.kt:8
FunctionlinkedListReversal
cpp/Linked Lists/linked_list_reversal.cpp:13
FunctionlinkedListReversal
(head: ListNode | null)
typescript/Linked Lists/linked_list_reversal.ts:12
MethodlinkedListReversal
(ListNode head)
java/Linked Lists/LinkedListReversal.java:18
FunctionlinkedListReversalRecursive
kotlin/Linked Lists/LinkedListReversalRecursive.kt:8
FunctionlinkedListReversalRecursive
cpp/Linked Lists/linked_list_reversal_recursive.cpp:13
FunctionlinkedListReversalRecursive
(head: ListNode | null)
typescript/Linked Lists/linked_list_reversal_recursive.ts:12
MethodlinkedListReversalRecursive
(ListNode head)
java/Linked Lists/LinkedListReversalRecursive.java:18
Functionlinked_list_intersection
(head_A: ListNode, head_B: ListNode)
python3/Linked Lists/linked_list_intersection.py:12
Functionlinked_list_loop
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_loop.py:12
Functionlinked_list_loop_naive
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_loop_naive.py:12
Functionlinked_list_midpoint
(head: ListNode)
python3/Fast and Slow Pointers/linked_list_midpoint.py:12
Functionlinked_list_reversal
(head: ListNode)
python3/Linked Lists/linked_list_reversal.py:12
Functionlinked_list_reversal_recursive
(head: ListNode)
python3/Linked Lists/linked_list_reversal_recursive.py:12
FunctionlocalMaximaInArray
kotlin/Binary Search/LocalMaximaInArray.kt:1
FunctionlocalMaximaInArray
cpp/Binary Search/local_maxima_in_array.cpp:3
MethodlocalMaximaInArray
(int[] nums)
java/Binary Search/LocalMaximaInArray.java:2
Functionlocal_maxima_in_array
(nums: List[int])
python3/Binary Search/local_maxima_in_array.py:4
FunctionlonelyInteger
kotlin/Bit Manipulation/LonelyInteger.kt:1
FunctionlonelyInteger
cpp/Bit Manipulation/lonely_integer.cpp:3
MethodlonelyInteger
(int[] nums)
java/Bit Manipulation/LonelyInteger.java:2
Functionlonely_integer
(nums: List[int])
python3/Bit Manipulation/lonely_integer.py:4
FunctionlongestChainOfConsecutiveNumbers
kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.kt:1
FunctionlongestChainOfConsecutiveNumbers
cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers.cpp:5
FunctionlongestChainOfConsecutiveNumbers
(nums: number[])
typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers.ts:1
FunctionlongestChainOfConsecutiveNumbers
(nums []int)
go/Hash Maps and Sets/longest_chain_of_consecutive_numbers.go:1
MethodlongestChainOfConsecutiveNumbers
(int[] nums)
java/Hash Maps and Sets/LongestChainOfConsecutiveNumbers.java:5
FunctionlongestChainOfConsecutiveNumbersBruteForce
kotlin/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.kt:1
FunctionlongestChainOfConsecutiveNumbersBruteForce
cpp/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.cpp:4
FunctionlongestChainOfConsecutiveNumbersBruteForce
(nums: number[])
typescript/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.ts:1
FunctionlongestChainOfConsecutiveNumbersBruteForce
(nums []int)
go/Hash Maps and Sets/longest_chain_of_consecutive_numbers_brute_force.go:1
MethodlongestChainOfConsecutiveNumbersBruteForce
(int[] nums)
java/Hash Maps and Sets/LongestChainOfConsecutiveNumbersBruteForce.java:2
FunctionlongestCommonSubsequence
kotlin/Dynamic Programming/LongestCommonSubsequence.kt:1
FunctionlongestCommonSubsequence
cpp/Dynamic Programming/longest_common_subsequence.cpp:5
MethodlongestCommonSubsequence
(String s1, String s2)
java/Dynamic Programming/LongestCommonSubsequence.java:2
FunctionlongestCommonSubsequenceOptimized
kotlin/Dynamic Programming/LongestCommonSubsequenceOptimized.kt:1
FunctionlongestCommonSubsequenceOptimized
cpp/Dynamic Programming/longest_common_subsequence_optimized.cpp:5
MethodlongestCommonSubsequenceOptimized
(String s1, String s2)
java/Dynamic Programming/LongestCommonSubsequenceOptimized.java:2
FunctionlongestIncreasingPath
kotlin/Graphs/LongestIncreasingPath.kt:1
FunctionlongestIncreasingPath
cpp/Graphs/longest_increasing_path.cpp:4
MethodlongestIncreasingPath
(int[][] matrix)
java/Graphs/LongestIncreasingPath.java:2
FunctionlongestPalindromeInAString
kotlin/Dynamic Programming/LongestPalindromeInAString.kt:1
← previousnext →601–700 of 1,014, ranked by callers