about | help | code help+videos | done | prefs |
Given a list containing only zeros and ones, write a recursive solution to return a list containing the same values with all the zeros appearing first in the list. Do not use the built-in Python sorted() function. binaryListSort([0, 1, 1, 1, 1, 0, 0, 0, 1, 0]) → [0, 0, 0, 0, 0, 1, 1, 1, 1, 1] binaryListSort([0]) → [0] binaryListSort([]) → [] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy