Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d25dd8e

Browse files
Update README.md
1 parent 3f6ab2c commit d25dd8e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎exercises/08.2-Divide_and_conquer/README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
3. Create a variable called `sorted_numbers` to start appending the *odd* numbers.
1010

11-
4. Then insert the *even* numbers into the `sorted_numbers`. Remember, the *odd* numbers come first, and you have to insert the *even* numbers after.
11+
4. If the number is even, push it to a placeholder list named `even`.
12+
13+
5. Then insert the `even` list into the `sorted_numbers`. Remember, the *odd* numbers come first, and you have to insert the `even` list after.
1214

1315
## 💡 Hints:
1416

@@ -18,8 +20,11 @@
1820

1921
## 💻 Expected result:
2022

23+
Everything should be inside a single list; there should not be nested lists.
24+
2125
```py
2226
sort_odd_even([1, 2, 33, 10, 20, 4])
2327

24-
[[1, 33, 2, 10, 20, 4]]
28+
[1, 33, 2, 10, 20, 4] # <-- Yes
29+
[[1,33], [2,10,20,4]] # <-- No
2530
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /