mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-03 16:08:02 +00:00
Fix typos (#191)
This commit is contained in:
committed by
Donne Martin
parent
cd9e9654bc
commit
9f89a51aba
@@ -72,7 +72,7 @@
|
||||
" * Break\n",
|
||||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n^2) avarage, worst. O(1) best if input is already sorted\n",
|
||||
"* Time: O(n^2) average, worst. O(1) best if input is already sorted\n",
|
||||
"* Space: O(1) for the iterative solution\n",
|
||||
"\n",
|
||||
"Misc: \n",
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
"* Merge split arrays\n",
|
||||
" * Using two pointers, one for each half starting at index 0\n",
|
||||
" * Add the smaller element to the result array\n",
|
||||
" * Inrement pointer where smaller element exists\n",
|
||||
" * Increment pointer where smaller element exists\n",
|
||||
" * Copy remaining elements to the result array\n",
|
||||
" * Return result array\n",
|
||||
"\n",
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"source": [
|
||||
"## Constraints\n",
|
||||
"\n",
|
||||
"* Is a naiive solution sufficient (ie not stable, not based on a heap)?\n",
|
||||
"* Is a naive solution sufficient (ie not stable, not based on a heap)?\n",
|
||||
" * Yes\n",
|
||||
"* Are duplicates allowed?\n",
|
||||
" * Yes\n",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"source": [
|
||||
"## Constraints\n",
|
||||
"\n",
|
||||
"* Is a naiive solution sufficient (ie not stable, not based on a heap)?\n",
|
||||
"* Is a naive solution sufficient (ie not stable, not based on a heap)?\n",
|
||||
" * Yes\n",
|
||||
"* Are duplicates allowed?\n",
|
||||
" * Yes\n",
|
||||
|
||||
Reference in New Issue
Block a user