6 kyu

Even Binary Sorting

361 of 710Karrotts

Description:

Given a string of binary numbers of length 3 sort the numbers in ascending order but only order the even numbers and leave all odd numbers in their place.

Example:

evenBinary("101 111 100 001 010") // returns "101 111 010 001 100"
even_binary("101 111 100 001 010") # returns "101 111 010 001 100"
even_binary("101 111 100 001 010") # returns "101 111 010 001 100"

Note: make sure all the binary numbers have a length of 3

Binary
Sorting
Algorithms
Fundamentals

Stats:

CreatedNov 16, 2016
PublishedNov 16, 2016
Warriors Trained1240
Total Skips12
Total Code Submissions2511
Total Times Completed710
JavaScript Completions361
Python Completions338
Ruby Completions36
Total Stars27
% of votes with a positive feedback rating93% of 189
Total "Very Satisfied" Votes164
Total "Somewhat Satisfied" Votes22
Total "Not Satisfied" Votes3
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Karrotts Avatar
  • JohanWiltink Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
Ad