Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions exercises/14-Divide-and-Conquer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# `14` Divide and conquer


## 📝 Instructions:

1. Create a function called `mergeTwoList` that expects an array of numbers (integers).
Expand All @@ -10,11 +11,12 @@

4. If the number is even number push it to a placeholder array named `even`.

5. Then concatenate the `odd` array to the `even` array, combine them and have the function return one single array.
5. Then add the `even` array to the `odd` array, and have the function return them as one single array.

> Remember, the `odd` array comes first and you have to append the `even` array to it. Use the `.push()` method.

> Remember, the `odd` array comes first and you have to append the `even`.

Ejemplo:
Example:

```js
mergeTwoList([1,2,33,10,20,4])
Expand All @@ -25,4 +27,4 @@ mergeTwoList([1,2,33,10,20,4])

### 💡 Hint:

+ Create empty(placeholder) variables when you need to store data.
+ Create local empty ***placeholder*** or ***auxiliary*** variables when you need to store data in a function.