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
shiftZerosToTheEnd
(nums: number[])
typescript/Two Pointers/shift_zeros_to_the_end.ts:1
Function
shiftZerosToTheEnd
(nums []int)
go/Two Pointers/shift_zeros_to_the_end.go:1
Method
shiftZerosToTheEnd
(int[] nums)
java/Two Pointers/ShiftZerosToTheEnd.java:2
Function
shiftZerosToTheEndNaive
kotlin/Two Pointers/ShiftZeroToTheEndNaive.kt:1
Function
shiftZerosToTheEndNaive
cpp/Two Pointers/shift_zeros_to_the_end_naive.cpp:3
Function
shiftZerosToTheEndNaive
(nums: number[])
typescript/Two Pointers/shift_zeros_to_the_end_naive.ts:1
Method
shiftZerosToTheEndNaive
(int[] nums)
java/Two Pointers/ShiftZerosToTheEndNaive.java:4
Function
shift_zeros_to_the_end
(nums: &mut Vec<i32>)
rust/Two Pointers/shift_zeros_to_the_end.rs:1
Function
shift_zeros_to_the_end
(nums: List[int])
python3/Two Pointers/shift_zeros_to_the_end.py:4
Function
shift_zeros_to_the_end_naive
(nums: &mut Vec<i32>)
rust/Two Pointers/shift_zeros_to_the_end_naive.rs:1
Function
shift_zeros_to_the_end_naive
(nums: List[int])
python3/Two Pointers/shift_zeros_to_the_end_naive.py:4
Function
shortestPath
kotlin/Graphs/ShortestPath.kt:3
Function
shortestPath
cpp/Graphs/shortest_path.cpp:5
Method
shortestPath
(int n, int[][] edges, int start)
java/Graphs/ShortestPath.java:9
Function
shortestTransformationSequence
kotlin/Graphs/ShortestTransformationSequence.kt:1
Function
shortestTransformationSequence
cpp/Graphs/shortest_transformation_sequence.cpp:6
Method
shortestTransformationSequence
(String start, String end, List<String> dictionary)
java/Graphs/ShortestTransformationSequence.java:8
Function
shortestTransformationSequenceOptimized
kotlin/Graphs/ShortestTransformationSequencOptimized.kt:1
Function
shortestTransformationSequenceOptimized
cpp/Graphs/shortest_transformation_sequence_optimized.cpp:6
Method
shortestTransformationSequenceOptimized
(String start, String end, List<String> dictionary)
java/Graphs/ShortestTransformationSequenceOptimized.java:8
Function
shortest_path
(n: int, edges: List[int], start: int)
python3/Graphs/shortest_path.py:6
Function
shortest_transformation_sequence
(start: str, end: str, dictionary: List[str])
python3/Graphs/shortest_transformation_sequence.py:5
Function
shortest_transformation_sequence_optimized
(start: str, end: str, dictionary: List[str])
python3/Graphs/shortest_transformation_sequence_optimized.py:5
Function
sortAKSortedArray
kotlin/Heaps/SortAKSortedArray.kt:3
Function
sortAKSortedArray
cpp/Heaps/sort_a_k_sorted_array.cpp:4
Method
sortAKSortedArray
(int[] nums, int k)
java/Heaps/SortAKSortedArray.java:4
Function
sortArray
kotlin/Sort and Search/SortArrayQuicksortOptimized.kt:1
Function
sortArray
kotlin/Sort and Search/SortArrayQuicksort.kt:1
Function
sortArray
cpp/Sort and Search/sort_array_quicksort.cpp:4
Function
sortArray
cpp/Sort and Search/sort_array_quicksort_optimized.cpp:6
Method
sortArray
(int[] nums)
java/Sort and Search/SortArrayQuicksortOptimized.java:2
Method
sortArray
(int[] nums)
java/Sort and Search/SortArrayQuicksort.java:2
Function
sortArrayCountingSort
kotlin/Sort and Search/SortArrayCountingSort.kt:1
Function
sortArrayCountingSort
cpp/Sort and Search/sort_array_counting_sort.cpp:4
Method
sortArrayCountingSort
(int[] nums)
java/Sort and Search/SortArrayCountingSort.java:4
Function
sortLinkedList
kotlin/Sort and Search/SortLinkedList.kt:8
Function
sortLinkedList
cpp/Sort and Search/sort_linked_list.cpp:13
Method
sortLinkedList
(ListNode head)
java/Sort and Search/SortLinkedList.java:18
Function
sort_a_k_sorted_array
(nums: List[int], k: int)
python3/Heaps/sort_a_k_sorted_array.py:5
Function
sort_array
(nums: List[int])
python3/Sort and Search/sort_array_quicksort.py:4
Function
sort_array
(nums: List[int])
python3/Sort and Search/sort_array_quicksort_optimized.py:5
Function
sort_array_counting_sort
(nums: List[int])
python3/Sort and Search/sort_array_counting_sort.py:4
Function
sort_linked_list
(head: ListNode)
python3/Sort and Search/sort_linked_list.py:12
Function
spiralMatrix
kotlin/Math and Geometry/SpiralMatrix.kt:1
Function
spiralMatrix
cpp/Math and Geometry/spiral_matrix.cpp:3
Function
spiral_matrix
(matrix: List[List[int]])
python3/Math and Geometry/spiral_matrix.py:4
Function
substringAnagrams
kotlin/Sliding Windows/SubstringAnagrams.kt:1
Function
substringAnagrams
cpp/Sliding Windows/substring_anagrams.cpp:4
Function
substringAnagrams
(s: string, t: string)
typescript/Sliding Windows/substring_anagrams.ts:1
Method
substringAnagrams
(String s, String t)
java/Sliding Windows/SubstringAnagrams.java:2
Function
substring_anagrams
(s: String, t: String)
rust/Sliding Windows/substring_anagrams.rs:1
Function
substring_anagrams
(s: str, t: str)
python3/Sliding Windows/substring_anagrams.py:1
Method
sumRange
kotlin/Prefix Sums/SumBetweenRange.kt:12
Method
sumRange
cpp/Prefix Sums/sum_between_range.cpp:14
Method
sumRange
(int i, int j)
java/Prefix Sums/SumBetweenRange.java:12
Method
sum_range
(self, i: int, j: int)
python3/Prefix Sums/sum_between_range.py:10
Function
swapOddAndEvenBits
kotlin/Bit Manipulation/SwapOddAndEvenBits.kt:1
Function
swapOddAndEvenBits
cpp/Bit Manipulation/swap_odd_and_even_bits.cpp:1
Method
swapOddAndEvenBits
(int n)
java/Bit Manipulation/SwapOddAndEvenBits.java:2
Function
swap_odd_and_even_bits
(n: int)
python3/Bit Manipulation/swap_odd_and_even_bits.py:1
Method
transferEnqueueToDequeue
kotlin/Stacks/ImplementAQueueUsingAStack.kt:12
Method
transferEnqueueToDequeue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:12
Function
triangleNumbers
kotlin/Math and Geometry/TriangleNumbers.kt:1
Function
triangleNumbers
cpp/Math and Geometry/triangle_numbers.cpp:1
Function
triangle_numbers
(n: int)
python3/Math and Geometry/triangle_numbers.py:1
Function
tripletSum
kotlin/Two Pointers/TripletSum.kt:1
Function
tripletSum
cpp/Two Pointers/triplet_sum.cpp:7
Function
tripletSum
(nums: number[])
typescript/Two Pointers/triplet_sum.ts:1
Function
tripletSum
(nums []int)
go/Two Pointers/triplet_sum.go:1
Method
tripletSum
(int[] nums)
java/Two Pointers/TripletSum.java:6
Function
tripletSumBruteForce
kotlin/Two Pointers/TripletSumBruteForce.kt:1
Function
tripletSumBruteForce
cpp/Two Pointers/triplet_sum_brute_force.cpp:5
Function
tripletSumBruteForce
(nums: number[])
typescript/Two Pointers/triplet_sum_brute_force.ts:1
Method
tripletSumBruteForce
(int[] nums)
java/Two Pointers/TripletSumBruteForce.java:4
Function
triplet_sum
(mut nums: Vec<i32>)
rust/Two Pointers/triplet_sum.rs:1
Function
triplet_sum
(nums: List[int])
python3/Two Pointers/triplet_sum.py:4
Function
triplet_sum_brute_force
(nums: Vec<i32>)
rust/Two Pointers/triplet_sum_brute_force.rs:3
Function
triplet_sum_brute_force
(nums: List[int])
python3/Two Pointers/triplet_sum_brute_force.py:4
Method
upperBoundBinarySearch
(int[] nums, int target)
csharp/Binary Search/FirstAndLastOccurrencesOfANumber.cs:29
Function
validParenthesisExpression
kotlin/Stacks/ValidParenthesisExpression.kt:3
Function
validParenthesisExpression
cpp/Stacks/valid_parenthesis_expression.cpp:5
Method
validParenthesisExpression
(String s)
java/Stacks/ValidParenthesisExpression.java:6
Function
valid_parenthesis_expression
(s: str)
python3/Stacks/valid_parenthesis_expression.py:1
Function
verifySudokuBoard
kotlin/Hash Maps and Sets/VerifySudokuBoard.kt:1
Function
verifySudokuBoard
cpp/Hash Maps and Sets/verify_sudoku_board.cpp:4
Function
verifySudokuBoard
(board: number[][])
typescript/Hash Maps and Sets/verify_sudoku_board.ts:1
Function
verifySudokuBoard
(board [][]int)
go/Hash Maps and Sets/verify_sudoku_board.go:1
Method
verifySudokuBoard
(int[][] board)
java/Hash Maps and Sets/VerifySudokuBoard.java:7
Function
verify_sudoku_board
(board: Vec<Vec<i32>>)
rust/Hash Maps and Sets/verify_sudoku_board.rs:3
Function
verify_sudoku_board
(board: List[List[int]])
python3/Hash Maps and Sets/verify_sudoku_board.py:4
Function
widestBinaryTreeLevel
kotlin/Trees/WidestBinaryTreeLevel.kt:14
Function
widestBinaryTreeLevel
cpp/Trees/widest_binary_tree_level.cpp:18
Method
widestBinaryTreeLevel
(TreeNode root)
java/Trees/WidestBinaryTreeLevel.java:28
Function
widest_binary_tree_level
(root: TreeNode)
python3/Trees/widest_binary_tree_level.py:14
Function
zeroStriping
kotlin/Hash Maps and Sets/ZeroStriping.kt:1
Function
zeroStriping
cpp/Hash Maps and Sets/zero_striping.cpp:4
Function
zeroStriping
(matrix: number[][])
typescript/Hash Maps and Sets/zero_striping.ts:1
Function
zeroStriping
(matrix [][]int)
go/Hash Maps and Sets/zero_striping.go:1
Method
zeroStriping
(int[][] matrix)
java/Hash Maps and Sets/ZeroStriping.java:2
Function
zeroStripingHashSets
kotlin/Hash Maps and Sets/ZeroStripingHashSets.kt:1
← previous
next →
901–1,000 of 1,014, ranked by callers