Skip to content

Commit c985525

Browse files
authored
Rm/problem title cleanup (#169)
1 parent 3293b70 commit c985525

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+89
-80
lines changed

README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
2222
* Data Structures
2323
* [Arrays](./array/README.md)
2424
* [Reverse Array In-place](./array/reverse_inplace_test.go)
25-
* [Add Two Numbers](./array/add_two_numbers_test.go)
25+
* [Add Two Numbers Represented as Slices](./array/add_slice_of_numbers_test.go)
2626
* [Find Duplicate in Array](./array/find_duplicate_in_array_test.go)
2727
* [Zero Sum Triplets](./array/zero_sum_triplets_test.go)
2828
* [Product of All Other Elements](./array/product_of_all_other_elements_test.go)
@@ -35,12 +35,12 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
3535
* [Look and Tell](./strings/look_and_tell_test.go)
3636
* [In Memory Database](./strings/in_memory_database_test.go)
3737
* [Number in English](./strings/number_in_english_test.go)
38-
* [Reverse Vowels In a String](./strings/reverse_vowels_test.go)
38+
* [Reverse Vowels in a String](./strings/reverse_vowels_test.go)
3939
* [Longest Substring of Two Unique Characters](./strings/longest_substring_test.go)
4040
* [Roman Numerals](./strings/roman_numerals_test.go)
4141
* [Linked Lists](./linkedlist/README.md)
4242
* [Linked List Serialization](./linkedlist/serialization_test.go)
43-
* [Reverse a Linked List In-place](./linkedlist/reverse_in_place_test.go)
43+
* [Reverse Linked List In-place](./linkedlist/reverse_in_place_test.go)
4444
* [Join Two Sorted Linked Lists](./linkedlist/join_sorted_lists_test.go)
4545
* [Keep Repetitions](./linkedlist/keep_repetitions_test.go)
4646
* [Copy Linked List with Random Pointer](./linkedlist/copy_linklist_with_random_pointer_test.go)
@@ -53,11 +53,11 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
5353
* [Basic Calculator](./stack/basic_calculator_test.go)
5454
* [Longest Valid Parentheses](./stack/longest_valid_parentheses_test.go)
5555
* [Queues](./queue/README.md)
56-
* [A Queue Using Stacks](./queue/queue_using_stacks_test.go)
57-
* [Implement a Circular Queue Array](./queue/circular_queue_using_array_test.go)
58-
* [Is Binary Tree Symmetrical](./queue/is_tree_symmetrical_test.go)
56+
* [Queue Using Stacks](./queue/queue_using_stacks_test.go)
57+
* [Circular Queue Array](./queue/circular_queue_using_array_test.go)
58+
* [Symmetrical Binary Tree](./queue/symmetrical_binary_tree_test.go)
5959
* [Generate Binary Numbers](./queue/generate_binary_numbers_test.go)
60-
* [Find The Maximum Sub-array of Length K](./queue/maximum_of_sub_arrays_test.go)
60+
* [Max Sub-array of size K](./queue/max_of_sub_arrays_test.go)
6161
* [String Permutations](./queue/string_permutations_test.go)
6262
* [Hash Tables](./hashtable/README.md)
6363
* [Find Missing Number](./hashtable/missing_number_test.go)
@@ -72,14 +72,14 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
7272
* [Sorted Array to Balanced BST](./tree/sorted_array_to_balanced_bsd_test.go)
7373
* [Traverse Binary Tree](./tree/traverse_binary_tree_test.go)
7474
* [Reverse Binary Tree](./tree/reverse_binary_tree_test.go)
75-
* [Implement Autocomplete](./tree/auto_complete_test.go)
75+
* [Autocompletion](./tree/autocompletion_test.go)
7676
* [Heaps](./heap/README.md)
7777
* [Kth Largest Element](./heap/kth_largest_element_test.go)
7878
* [Merge Sorted Lists](./heap/merge_sorted_list_test.go)
7979
* [Median in a Stream](./heap/median_in_a_stream_test.go)
8080
* [Regular Numbers](./heap/regular_numbers_test.go)
8181
* [Kth Closest Points to the Center](./heap/k_closest_points_to_origin_test.go)
82-
* [Sliding Maximum](./heap/sliding_maximum_test.go)
82+
* [Sliding Max](./heap/sliding_max_test.go)
8383
* [Heap Sort](./heap/heap_sort_test.go)
8484
* Algorithms
8585
* [Recursion](./recursion/README.md)
@@ -88,7 +88,7 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
8888
* [Climbing Stairs](./recursion/climbing_stairs_test.go)
8989
* [Exponentiation](./recursion/exponentiation_test.go)
9090
* [Multiplication](./recursion/multiplication_test.go)
91-
* [Regular Expressions Matching](./recursion/regular_expressions_test.go)
91+
* [Regular Expression Matching](./recursion/regular_expression_test.go)
9292
* [Expression Operators](./recursion/expression_operators_test.go)
9393
* [Divide and Conquer](./dnc/README.md)
9494
* [Binary Search](./dnc/binary_search_test.go)
@@ -98,11 +98,11 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
9898
* [Merge Sort](./dnc/merge_sort_test.go)
9999
* [Quick Sort](./dnc/quick_sort_test.go)
100100
* [Bit Manipulation](./bit/README.md)
101-
* [Division without multiplication or division operators](./bit/division_without_operators_test.go)
102-
* [Middle without division](./bit/middle_without_division_test.go)
103-
* [Addition without using plus (+) or any other arithmetic operators](./bit/addition_without_operators_test.go)
101+
* [Division Without Multiplication or Division Operators](./bit/division_without_operators_test.go)
102+
* [Middle Without Division](./bit/middle_without_division_test.go)
103+
* [Addition Without Arithmetic Operators](./bit/addition_without_operators_test.go)
104104
* [Power of Two](./bit/is_power_of_two_test.go)
105-
* [Maximum without if conditions](./bit/max_function_without_conditions_test.go)
105+
* [Max Without Comparison Operators](./bit/max_without_comparison_operators_test.go)
106106
* [Oddly Repeated Number](./bit/oddly_repeated_number_test.go)
107107
* [Backtracking](./backtracking/README.md)
108108
* [Permutations](./backtracking/permutations_test.go)
@@ -112,8 +112,8 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
112112
* [Sudoku](./backtracking/sudoku_test.go)
113113
* [N Queens](./backtracking/n_queens_test.go)
114114
* [Graphs](./graph/README.md)
115-
* [Iteratively Implement BFS and DFS](./graph/iterative_traversal_test.go)
116-
* [Is Graph a DAG](./graph/is_dag_test.go)
115+
* [Iteratively BFS and DFS](./graph/iterative_traversal_test.go)
116+
* [DAG Graphs](./graph/is_dag_test.go)
117117
* [Topological Sort](./graph/topological_sort_test.go)
118118
* [Employee Headcount](./graph/employee_headcount_test.go)
119119
* [Remove Invalid Parentheses](./graph/remove_invalid_parentheses_test.go)
@@ -124,18 +124,18 @@ Welcome to **Data Structures and Algorithms in Go**! 🎉 This project is design
124124
* [Number of Islands](./graph/number_of_islands_test.go)
125125
* [Dependency Order](./graph/dependency_order_test.go)
126126
* [Greedy Algorithms](./greedy/README.md)
127-
* [Maximum Stock Profit](./greedy/max_stock_profit_test.go)
127+
* [Max Stock Profit](./greedy/max_stock_profit_test.go)
128128
* [Activity Selector](./greedy/activity_selector_test.go)
129129
* [Knapsack](./greedy/knapsack_test.go)
130130
* [Jump Game](./greedy/jump_game_test.go)
131-
* [Maximum Number](./greedy/max_number_test.go)
131+
* [Max Number](./greedy/max_number_test.go)
132132
* [Task Scheduling](./greedy/task_scheduling_test.go)
133133
* [Dynamic Programming](./dp/README.md)
134134
* [Rod Cutting](./dp/rod_cutting_test.go)
135135
* [Sum Up to Number](./dp/sum_up_to_integer_test.go)
136136
* [House Robber](./dp/house_robber_test.go)
137137
* [Interleaving String](./dp/interleaving_string_test.go)
138-
* [Minimum Deletion to Make a Palindrome](./dp/minimum_deletion_to_make_palindrome_test.go)
138+
* [Min Deletions to Make a Palindrome](./dp/min_deletions_to_make_palindrome_test.go)
139139
* [Word Distance](./dp/word_distance_test.go)
140140

141141
## 📋 Outline

array/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Arrays are used wherever sequential data or more than one piece of data is neede
8787
## Rehearsal
8888

8989
* [Reverse Array In-place](./reverse_inplace_test.go), [Solution](./reverse_inplace.go)
90-
* [Add Two Numbers](./add_two_numbers_test.go), [Solution](./add_two_numbers.go)
90+
* [Add Two Numbers Represented as Slices](./add_slice_of_numbers_test.go), [Solution](./add_slice_of_numbers.go)
9191
* [Find Duplicate in Array](./find_duplicate_in_array_test.go), [Solution](./find_duplicate_in_array.go)
9292
* [Zero Sum Triplets](./zero_sum_triplets_test.go), [Solution](./zero_sum_triplets.go)
9393
* [Product of All Other Elements](./product_of_all_other_elements_test.go), [Solution](./product_of_all_other_elements.go)

array/add_two_numbers.go renamed to array/add_slice_of_numbers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package array
22

3-
// AddTwoNumbers solves the problem in O(n) time and O(1) space.
4-
func AddTwoNumbers(num1, num2 []int) []int {
3+
// AddSliceOfTwoNumbers solves the problem in O(n) time and O(1) space.
4+
func AddSliceOfTwoNumbers(num1, num2 []int) []int {
55
num1, num2 = equalizeLengths(num1, num2)
66
carry := false
77
for i := len(num1) - 1; i > -1; i-- {

array/add_two_numbers_test.go renamed to array/add_slice_of_numbers_test.go

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ import (
66
)
77

88
/*
9-
TestAddTwoNumbers tests solution(s) with the following signature and problem description:
9+
TestAddSliceOfTwoNumbers tests solution(s) with the following signature and problem description:
1010
1111
AddTwoNumbers(num1, num2 []int) []int
1212
13-
Given two positive integers represented as a slice like {2,9} and {9,9,9} return their sum like {1,0,2,8}.
14-
because 29+999=1028.
13+
A slice representation of a positive integer like 283 looks like {2,8,3}. Given two positive
14+
integers represented in this format return their sum in the same format.
15+
16+
For example given {2,9} and {9,9,9}, return {1,0,2,8}.
17+
Because 29+999=1028.
1518
*/
16-
func TestAddTwoNumbers(t *testing.T) {
19+
func TestAddSliceOfTwoNumbers(t *testing.T) {
1720
tests := []struct {
1821
num1, num2, sum []int
1922
}{
@@ -26,7 +29,7 @@ func TestAddTwoNumbers(t *testing.T) {
2629
{[]int{9, 9, 9}, []int{9, 9, 9}, []int{1, 9, 9, 8}},
2730
}
2831
for i, test := range tests {
29-
if got := AddTwoNumbers(test.num1, test.num2); !slices.Equal(got, test.sum) {
32+
if got := AddSliceOfTwoNumbers(test.num1, test.num2); !slices.Equal(got, test.sum) {
3033
t.Fatalf("Failed test case #%d. Want %v got %v", i, test.sum, got)
3134
}
3235
}

array/equal_sum_subarrays_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TestEqualSumSubArrays tests solution(s) with the following signature and problem
1313
Given an list of integers A, return two sub-arrays with equal sums without changing the
1414
order of the elements in the list.
1515
16-
For example if given {1,7,3,5} return {1,7} and {3,5} because 1+7 = 3+5 = 8.
16+
For example given {1,7,3,5}, return {1,7} and {3,5} because 1+7 = 3+5 = 8.
1717
*/
1818
func TestEqualSumSubArrays(t *testing.T) {
1919
tests := []struct {

array/find_duplicate_in_array_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TestFindDuplicate tests solution(s) with the following signature and problem des
77
88
FindDuplicate(list []int) int
99
10-
Given an unsorted slice of n positive integers like {3,2,1,4,5,4,...,n} where each number is smaller
10+
Given an unsorted slice of n positive integers like {3,2,1,4,5,4,,n} where each number is smaller
1111
than n and there is at most one duplicate, return the duplicate value like 4.
1212
*/
1313
func TestFindDuplicate(t *testing.T) {

array/product_of_all_other_elements_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TestProductOfAllOtherElements tests solution(s) with the following signature and
1313
Given an array of integers A, construct a new array B such that B[i] = product of all items
1414
in A except A[i] without using division in O(n) time.
1515
16-
For example given {1,2,3,4} it should return {24,12,8,6} because:
16+
For example given {1,2,3,4}, return {24,12,8,6} because:
1717
* 24=2*3*4.
1818
* 12=1*3*4.
1919
* 8=1*2*4.

array/reverse_inplace_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TestReverseInPlace tests solution(s) with the following signature and problem de
1313
Given a slice of integers, a start index, and an end index, reverse the integers in the in-place
1414
without using any extra memory.
1515
16-
For example given {1,2,3,4,5,6} and start of 0 and end of 4, it should return {5,4,3,2,1,6} because:
16+
For example given {1,2,3,4,5,6} and start of 0 and end of 4, return {5,4,3,2,1,6} because:
1717
1818
Reverse of items from index 0 to 4 is {5,4,3,2,1} and the remaining item {6} remain unchanged, so
1919
the the resulting slice is {5,4,3,2,1,6}.

array/rotate_k_steps_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ TestRotateKSteps tests solution(s) with the following signature and problem desc
1212
1313
Given an list of integers and a number k, rotate the array k times.
1414
15-
For example if given {1,2,3} and 3, it should return {1,2,3} because.
16-
Slice after 1 rotation: {3,1,2}.
17-
Slice after 2 rotations: {2,3,1}.
18-
Slice after 3 rotations: {1,2,3}.
15+
For example given {1,2,3} and 3, return {1,2,3} because:
16+
17+
After 1 rotation: {3,1,2}.
18+
After 2 rotations: {2,3,1}.
19+
After 3 rotations: {1,2,3}.
1920
*/
2021
func TestRotateKSteps(t *testing.T) {
2122
tests := []struct {

bit/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ Negation can be used to invert a set of flags or find the two's complement of a
108108

109109
## Rehearsal
110110

111-
* [Division without multiplication or division operators](./division_without_operators_test.go), [Solution](./division_without_operators.go)
112-
* [Middle without division](./middle_without_division_test.go), [Solution](./middle_without_division.go)
113-
* [Addition without using plus (+) or any other arithmetic operators](./addition_without_operators_test.go), [Solution](./addition_without_operators.go)
111+
* [Division Without Multiplication or Division Operators](./division_without_operators_test.go), [Solution](./division_without_operators.go)
112+
* [Middle Without Division](./middle_without_division_test.go), [Solution](./middle_without_division.go)
113+
* [Addition Without Arithmetic Operators](./addition_without_operators_test.go), [Solution](./addition_without_operators.go)
114114
* [Power of Two](./is_power_of_two_test.go), [Solution](./is_power_of_two.go)
115-
* [Maximum without if conditions](./max_function_without_conditions_test.go), [Solution](./max_function_without_conditions.go)
115+
* [Max Without Comparison Operators](./max_without_comparison_operators_test.go), [Solution](./max_without_comparison_operators.go)
116116
* [Oddly Repeated Number](./oddly_repeated_number_test.go), [Solution](./oddly_repeated_number.go)

bit/addition_without_operators.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package bit
22

3-
// Add solves the problem in O(1) time and O(1) space.
4-
func Add(x, y int) int {
3+
// AdditionWithoutArithmeticOperators solves the problem in O(1) time and O(1) space.
4+
func AdditionWithoutArithmeticOperators(x, y int) int {
55
for y != 0 {
66
sum := x ^ y
77
carry := (x & y) << 1

bit/addition_without_operators_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package bit
33
import "testing"
44

55
/*
6-
TestAdd tests solution(s) with the following signature and problem description:
6+
TestAdditionWithoutArithmeticOperators tests solution(s) with the following signature and problem description:
77
88
func Add(x, y int) int
99
10-
Add x by y, two integers without using the built-in + or any other arithmetic operators.
10+
Add x by y, two integers without using any arithmetic operators such as {+,-,/,*,++,--,+=,…}.
1111
*/
12-
func TestAdd(t *testing.T) {
12+
func TestAdditionWithoutArithmeticOperators(t *testing.T) {
1313
tests := []struct {
1414
a, b int
1515
}{
@@ -20,7 +20,7 @@ func TestAdd(t *testing.T) {
2020
}
2121

2222
for i, test := range tests {
23-
got := Add(test.a, test.b)
23+
got := AdditionWithoutArithmeticOperators(test.a, test.b)
2424
want := test.a + test.b
2525
if got != want {
2626
t.Fatalf("Failed test case #%d. Want %#v got %#v", i, want, got)

bit/max_function_without_conditions_test.go renamed to bit/max_without_comparison_operators_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TestMax tests solution(s) with the following signature and problem description:
88
func Max(x, y int) int
99
1010
Write max, a function that returns the largest of two numbers without using a
11-
comparison or if conditions.
11+
any of the comparison operators such as {if, switch,…}.
1212
*/
1313
func TestMax(t *testing.T) {
1414
tests := []struct {

dp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ DP is well-suited for tackling complex problems, including logistics, game theor
9494
* [Sum Up to Number](./sum_up_to_integer_test.go), [Solution](./sum_up_to_integer.go)
9595
* [House Robber](./house_robber_test.go), [Solution](./house_robber.go).
9696
* [Interleaving String](./interleaving_string_test.go), [Solution](./interleaving_string.go)
97-
* [Minimum Deletion to Make a Palindrome](./minimum_deletion_to_make_palindrome_test.go), [Solution](./minimum_deletion_to_make_palindrome.go)
97+
* [Min Deletions to Make a Palindrome](./min_deletions_to_make_palindrome_test.go), [Solution](./min_deletions_to_make_palindrome.go)
9898
* [Word Distance](./word_distance_test.go), [Solution](./word_distance.go)

dp/minimum_deletion_to_make_palindrome.go renamed to dp/min_deletions_to_make_palindrome.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dp
22

3-
// MinimumDeletionsToMakePalindrome solves the problem in O(n^2) time and O(n^2) space.
4-
func MinimumDeletionsToMakePalindrome(input string) int {
3+
// MinDeletionsToMakePalindrome solves the problem in O(n^2) time and O(n^2) space.
4+
func MinDeletionsToMakePalindrome(input string) int {
55
if len(input) <= 1 {
66
return 0
77
}

dp/minimum_deletion_to_make_palindrome_test.go renamed to dp/min_deletions_to_make_palindrome_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package dp
33
import "testing"
44

55
/*
6-
TestMinimumDeletionsToMakePalindrome tests solution(s) with the following signature and problem description:
6+
TestMinDeletionsToMakePalindrome tests solution(s) with the following signature and problem description:
77
88
func MinimumDeletionsToMakePalindrome(input string) int
99
1010
Given a string like abccb return the minimum number of character deletions that can be done on the string
1111
to make it a palindrome like 1 (by removing a, we will have bccb).
1212
*/
13-
func TestMinimumDeletionsToMakePalindrome(t *testing.T) {
13+
func TestMinDeletionsToMakePalindrome(t *testing.T) {
1414
tests := []struct {
1515
input string
1616
minChangeNeededToMakePalindrome int
@@ -27,7 +27,7 @@ func TestMinimumDeletionsToMakePalindrome(t *testing.T) {
2727
}
2828

2929
for i, test := range tests {
30-
if got := MinimumDeletionsToMakePalindrome(test.input); got != test.minChangeNeededToMakePalindrome {
30+
if got := MinDeletionsToMakePalindrome(test.input); got != test.minChangeNeededToMakePalindrome {
3131
t.Fatalf("Failed test case #%d. Want %d got %d", i, test.minChangeNeededToMakePalindrome, got)
3232
}
3333
}

graph/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ Graph algorithms find extensive usage in addressing real-world challenges, inclu
269269

270270
## Rehearsal
271271

272-
* [Iteratively Implement BFS and DFS](./iterative_traversal_test.go), [Solution](./iterative_traversal.go)
273-
* [Is Graph a DAG](./is_dag_test.go), [Solution](./is_dag.go)
272+
* [Iteratively BFS and DFS](./iterative_traversal_test.go), [Solution](./iterative_traversal.go)
273+
* [DAG Graphs](./is_dag_test.go), [Solution](./is_dag.go)
274274
* [Topological Sort](./topological_sort_test.go), [Solution](./topological_sort.go)
275275
* [Employee Headcount](./employee_headcount_test.go), [Solution](./employee_headcount.go)
276276
* [Remove Invalid Parentheses](./remove_invalid_parentheses_test.go), [Solution](./remove_invalid_parentheses.go)

greedy/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Greedy algorithms can be applied to optimization problems in which the aim is to
2727

2828
## Rehearsal
2929

30-
* [Maximum Stock Profit](./max_stock_profit_test.go), [Solution](./max_stock_profit.go)
30+
* [Max Stock Profit](./max_stock_profit_test.go), [Solution](./max_stock_profit.go)
3131
* [Activity Selector](./activity_selector_test.go), [Solution](./activity_selector.go)
3232
* [Knapsack](./knapsack_test.go), [Solution](./knapsack.go)
3333
* [Jump Game](./jump_game_test.go), [Solution](./jump_game.go)
34-
* [Maximum Number](./max_number_test.go), [Solution](./max_number.go)
34+
* [Max Number](./max_number_test.go), [Solution](./max_number.go)
3535
* [Task Scheduling](./task_scheduling_test.go), [Solution](./task_scheduling.go)

greedy/max_number_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Given two numbers represented as list of positive integers, and an integer n, re
1414
largest possible integer with n digits that can be constructed by merging digits from two
1515
numbers while respecting the order of digits in each number.
1616
17-
For example given {5, 4, 3, 2, 1}, {9, 8, 7, 6} and 9, it should return a 9 digit number
18-
{9, 8, 7, 6, 5, 4, 3, 2, 1}.
17+
For example given {5, 4, 3, 2, 1}, {9, 8, 7, 6} and 9, return
18+
{9, 8, 7, 6, 5, 4, 3, 2, 1} because it is the largest 9 digit combination of all elements
19+
of the two given slices.
1920
*/
2021
func TestMaxNumber(t *testing.T) {
2122
tests := []struct {

heap/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ Priority queues implemented as heaps are commonly used in job scheduling, for ex
9999
* [Median in a Stream](./median_in_a_stream_test.go), [Solution](./median_in_a_stream.go)
100100
* [Regular Numbers](./regular_numbers_test.go), [Solution](./regular_numbers.go)
101101
* [Kth Closest Points to the Center](./k_closest_points_to_origin_test.go), [Solution](./k_closest_points_to_origin.go)
102-
* [Sliding Maximum](./sliding_maximum_test.go), [Solution](./sliding_maximum.go)
102+
* [Sliding Max](./sliding_max_test.go), [Solution](./sliding_max.go)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)