In this kata your task is to create bit calculator. Function arguments are two bit representation of numbers ("101","1","10"...), and you must return their sum in decimal representation.
Test.expect(calculate("10","10") == 4);
Test.expect(calculate("10","0") == 2);
Test.expect(calculate("101","10") == 7);
parseInt and some Math functions are disabled.
Those Math functions are enabled: pow,round,random
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #94 The Hashtag Generator (5kyu) (0) | 2018.08.09 |
---|---|
codewars #93 Number Format (6kyu) (0) | 2018.08.08 |
codewars #91 Find X (6kyu) (0) | 2018.08.06 |
codewars #90 Cure Cancer (6kyu) (0) | 2018.08.01 |
codewars #89 Mexican Wave (6kyu) (0) | 2018.07.31 |