6 kyu

Even Binary Sorting

367 of 726Karrotts

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 Trained1263
Total Skips12
Total Code Submissions2588
Total Times Completed726
JavaScript Completions367
Python Completions347
Ruby Completions37
Total Stars27
% of votes with a positive feedback rating92% of 192
Total "Very Satisfied" Votes166
Total "Somewhat Satisfied" Votes23
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