Skip to content

Commit 865de71

Browse files
author
Philip Guo
committed
minor typo corrections
1 parent c8b43ef commit 865de71

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎questions/debug-mergesort.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Debug: Mergesort
33

44
Question:
55

6-
Add at most TWO lines of code to make the given broken mergesort
7-
function work properly.
6+
Add at most TWO lines of code to make the given buggy mergesort function
7+
work properly.
88

99
Hint:
1010
Focus on the merge function.

‎questions/optimize-sum.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Question:
55

66
The given function finds the greatest sum amongst all pairs of elements
77
in the array. Optimize this function so that it works on any 5-element
8-
list list by executing less than 20 instructions.
8+
list by executing less than 20 instructions.
99

1010
Hint:
1111
Think about sorting.

‎questions/remove-dups.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ Name:
22
Remove duplicate characters
33

44
Question:
5+
56
Write a function to return a new string that contains the contents of
6-
the input string with all duplicates removed.
7+
the input string (in the original order) with all duplicate characters
8+
removed.
79

810
Hint:
911
Think about using a set to keep track of already-seen characters.

‎questions/reverse.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Name:
22
Reverse list
33

44
Question:
5+
56
Write a function to return the reverse of the input list.
67

78
Hint:

‎questions/two-sum.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Name:
22
Two-sum
33

44
Question:
5+
56
Write a function to return the sum of the two largest elements in the
67
given list.
78

0 commit comments

Comments
 (0)