MCPcopy Create free account

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

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

FunctionshiftZerosToTheEnd
(nums: number[])
typescript/Two Pointers/shift_zeros_to_the_end.ts:1
FunctionshiftZerosToTheEnd
(nums []int)
go/Two Pointers/shift_zeros_to_the_end.go:1
MethodshiftZerosToTheEnd
(int[] nums)
java/Two Pointers/ShiftZerosToTheEnd.java:2
FunctionshiftZerosToTheEndNaive
kotlin/Two Pointers/ShiftZeroToTheEndNaive.kt:1
FunctionshiftZerosToTheEndNaive
cpp/Two Pointers/shift_zeros_to_the_end_naive.cpp:3
FunctionshiftZerosToTheEndNaive
(nums: number[])
typescript/Two Pointers/shift_zeros_to_the_end_naive.ts:1
MethodshiftZerosToTheEndNaive
(int[] nums)
java/Two Pointers/ShiftZerosToTheEndNaive.java:4
Functionshift_zeros_to_the_end
(nums: &mut Vec<i32>)
rust/Two Pointers/shift_zeros_to_the_end.rs:1
Functionshift_zeros_to_the_end
(nums: List[int])
python3/Two Pointers/shift_zeros_to_the_end.py:4
Functionshift_zeros_to_the_end_naive
(nums: &mut Vec<i32>)
rust/Two Pointers/shift_zeros_to_the_end_naive.rs:1
Functionshift_zeros_to_the_end_naive
(nums: List[int])
python3/Two Pointers/shift_zeros_to_the_end_naive.py:4
FunctionshortestPath
kotlin/Graphs/ShortestPath.kt:3
FunctionshortestPath
cpp/Graphs/shortest_path.cpp:5
MethodshortestPath
(int n, int[][] edges, int start)
java/Graphs/ShortestPath.java:9
FunctionshortestTransformationSequence
kotlin/Graphs/ShortestTransformationSequence.kt:1
FunctionshortestTransformationSequence
cpp/Graphs/shortest_transformation_sequence.cpp:6
MethodshortestTransformationSequence
(String start, String end, List<String> dictionary)
java/Graphs/ShortestTransformationSequence.java:8
FunctionshortestTransformationSequenceOptimized
kotlin/Graphs/ShortestTransformationSequencOptimized.kt:1
FunctionshortestTransformationSequenceOptimized
cpp/Graphs/shortest_transformation_sequence_optimized.cpp:6
MethodshortestTransformationSequenceOptimized
(String start, String end, List<String> dictionary)
java/Graphs/ShortestTransformationSequenceOptimized.java:8
Functionshortest_path
(n: int, edges: List[int], start: int)
python3/Graphs/shortest_path.py:6
Functionshortest_transformation_sequence
(start: str, end: str, dictionary: List[str])
python3/Graphs/shortest_transformation_sequence.py:5
Functionshortest_transformation_sequence_optimized
(start: str, end: str, dictionary: List[str])
python3/Graphs/shortest_transformation_sequence_optimized.py:5
FunctionsortAKSortedArray
kotlin/Heaps/SortAKSortedArray.kt:3
FunctionsortAKSortedArray
cpp/Heaps/sort_a_k_sorted_array.cpp:4
MethodsortAKSortedArray
(int[] nums, int k)
java/Heaps/SortAKSortedArray.java:4
FunctionsortArray
kotlin/Sort and Search/SortArrayQuicksortOptimized.kt:1
FunctionsortArray
kotlin/Sort and Search/SortArrayQuicksort.kt:1
FunctionsortArray
cpp/Sort and Search/sort_array_quicksort.cpp:4
FunctionsortArray
cpp/Sort and Search/sort_array_quicksort_optimized.cpp:6
MethodsortArray
(int[] nums)
java/Sort and Search/SortArrayQuicksortOptimized.java:2
MethodsortArray
(int[] nums)
java/Sort and Search/SortArrayQuicksort.java:2
FunctionsortArrayCountingSort
kotlin/Sort and Search/SortArrayCountingSort.kt:1
FunctionsortArrayCountingSort
cpp/Sort and Search/sort_array_counting_sort.cpp:4
MethodsortArrayCountingSort
(int[] nums)
java/Sort and Search/SortArrayCountingSort.java:4
FunctionsortLinkedList
kotlin/Sort and Search/SortLinkedList.kt:8
FunctionsortLinkedList
cpp/Sort and Search/sort_linked_list.cpp:13
MethodsortLinkedList
(ListNode head)
java/Sort and Search/SortLinkedList.java:18
Functionsort_a_k_sorted_array
(nums: List[int], k: int)
python3/Heaps/sort_a_k_sorted_array.py:5
Functionsort_array
(nums: List[int])
python3/Sort and Search/sort_array_quicksort.py:4
Functionsort_array
(nums: List[int])
python3/Sort and Search/sort_array_quicksort_optimized.py:5
Functionsort_array_counting_sort
(nums: List[int])
python3/Sort and Search/sort_array_counting_sort.py:4
Functionsort_linked_list
(head: ListNode)
python3/Sort and Search/sort_linked_list.py:12
FunctionspiralMatrix
kotlin/Math and Geometry/SpiralMatrix.kt:1
FunctionspiralMatrix
cpp/Math and Geometry/spiral_matrix.cpp:3
Functionspiral_matrix
(matrix: List[List[int]])
python3/Math and Geometry/spiral_matrix.py:4
FunctionsubstringAnagrams
kotlin/Sliding Windows/SubstringAnagrams.kt:1
FunctionsubstringAnagrams
cpp/Sliding Windows/substring_anagrams.cpp:4
FunctionsubstringAnagrams
(s: string, t: string)
typescript/Sliding Windows/substring_anagrams.ts:1
MethodsubstringAnagrams
(String s, String t)
java/Sliding Windows/SubstringAnagrams.java:2
Functionsubstring_anagrams
(s: String, t: String)
rust/Sliding Windows/substring_anagrams.rs:1
Functionsubstring_anagrams
(s: str, t: str)
python3/Sliding Windows/substring_anagrams.py:1
MethodsumRange
kotlin/Prefix Sums/SumBetweenRange.kt:12
MethodsumRange
cpp/Prefix Sums/sum_between_range.cpp:14
MethodsumRange
(int i, int j)
java/Prefix Sums/SumBetweenRange.java:12
Methodsum_range
(self, i: int, j: int)
python3/Prefix Sums/sum_between_range.py:10
FunctionswapOddAndEvenBits
kotlin/Bit Manipulation/SwapOddAndEvenBits.kt:1
FunctionswapOddAndEvenBits
cpp/Bit Manipulation/swap_odd_and_even_bits.cpp:1
MethodswapOddAndEvenBits
(int n)
java/Bit Manipulation/SwapOddAndEvenBits.java:2
Functionswap_odd_and_even_bits
(n: int)
python3/Bit Manipulation/swap_odd_and_even_bits.py:1
MethodtransferEnqueueToDequeue
kotlin/Stacks/ImplementAQueueUsingAStack.kt:12
MethodtransferEnqueueToDequeue
cpp/Stacks/implement_a_queue_using_a_stack.cpp:12
FunctiontriangleNumbers
kotlin/Math and Geometry/TriangleNumbers.kt:1
FunctiontriangleNumbers
cpp/Math and Geometry/triangle_numbers.cpp:1
Functiontriangle_numbers
(n: int)
python3/Math and Geometry/triangle_numbers.py:1
FunctiontripletSum
kotlin/Two Pointers/TripletSum.kt:1
FunctiontripletSum
cpp/Two Pointers/triplet_sum.cpp:7
FunctiontripletSum
(nums: number[])
typescript/Two Pointers/triplet_sum.ts:1
FunctiontripletSum
(nums []int)
go/Two Pointers/triplet_sum.go:1
MethodtripletSum
(int[] nums)
java/Two Pointers/TripletSum.java:6
FunctiontripletSumBruteForce
kotlin/Two Pointers/TripletSumBruteForce.kt:1
FunctiontripletSumBruteForce
cpp/Two Pointers/triplet_sum_brute_force.cpp:5
FunctiontripletSumBruteForce
(nums: number[])
typescript/Two Pointers/triplet_sum_brute_force.ts:1
MethodtripletSumBruteForce
(int[] nums)
java/Two Pointers/TripletSumBruteForce.java:4
Functiontriplet_sum
(mut nums: Vec<i32>)
rust/Two Pointers/triplet_sum.rs:1
Functiontriplet_sum
(nums: List[int])
python3/Two Pointers/triplet_sum.py:4
Functiontriplet_sum_brute_force
(nums: Vec<i32>)
rust/Two Pointers/triplet_sum_brute_force.rs:3
Functiontriplet_sum_brute_force
(nums: List[int])
python3/Two Pointers/triplet_sum_brute_force.py:4
MethodupperBoundBinarySearch
(int[] nums, int target)
csharp/Binary Search/FirstAndLastOccurrencesOfANumber.cs:29
FunctionvalidParenthesisExpression
kotlin/Stacks/ValidParenthesisExpression.kt:3
FunctionvalidParenthesisExpression
cpp/Stacks/valid_parenthesis_expression.cpp:5
MethodvalidParenthesisExpression
(String s)
java/Stacks/ValidParenthesisExpression.java:6
Functionvalid_parenthesis_expression
(s: str)
python3/Stacks/valid_parenthesis_expression.py:1
FunctionverifySudokuBoard
kotlin/Hash Maps and Sets/VerifySudokuBoard.kt:1
FunctionverifySudokuBoard
cpp/Hash Maps and Sets/verify_sudoku_board.cpp:4
FunctionverifySudokuBoard
(board: number[][])
typescript/Hash Maps and Sets/verify_sudoku_board.ts:1
FunctionverifySudokuBoard
(board [][]int)
go/Hash Maps and Sets/verify_sudoku_board.go:1
MethodverifySudokuBoard
(int[][] board)
java/Hash Maps and Sets/VerifySudokuBoard.java:7
Functionverify_sudoku_board
(board: Vec<Vec<i32>>)
rust/Hash Maps and Sets/verify_sudoku_board.rs:3
Functionverify_sudoku_board
(board: List[List[int]])
python3/Hash Maps and Sets/verify_sudoku_board.py:4
FunctionwidestBinaryTreeLevel
kotlin/Trees/WidestBinaryTreeLevel.kt:14
FunctionwidestBinaryTreeLevel
cpp/Trees/widest_binary_tree_level.cpp:18
MethodwidestBinaryTreeLevel
(TreeNode root)
java/Trees/WidestBinaryTreeLevel.java:28
Functionwidest_binary_tree_level
(root: TreeNode)
python3/Trees/widest_binary_tree_level.py:14
FunctionzeroStriping
kotlin/Hash Maps and Sets/ZeroStriping.kt:1
FunctionzeroStriping
cpp/Hash Maps and Sets/zero_striping.cpp:4
FunctionzeroStriping
(matrix: number[][])
typescript/Hash Maps and Sets/zero_striping.ts:1
FunctionzeroStriping
(matrix [][]int)
go/Hash Maps and Sets/zero_striping.go:1
MethodzeroStriping
(int[][] matrix)
java/Hash Maps and Sets/ZeroStriping.java:2
FunctionzeroStripingHashSets
kotlin/Hash Maps and Sets/ZeroStripingHashSets.kt:1
← previousnext →901–1,000 of 1,014, ranked by callers