Back to Browse

Codewars Javascript - Bit Counting - SOLVED IN 3 EASY STEPS!

2.0K views
Aug 16, 2017
4:37

In this video I'll be taking you step by step in detail how I solved the "Bit Counting" challenge in 3 easy steps using javascript on codewars .com. This is a great video to practice using the replace function as well as learning about the radix parameter and how to change a string into an integer. The steps I took to complete this challenge are as follows(I go into more detail in the video): STEP 1 Convert the number to binary. STEP 2 Remove zeros from the string STEP 3 Iterate through the digits and add them up. Useful links: Radix: https://goo.gl/y6GWRe; parseInt: https://goo.gl/Ypd6SP

Download

0 formats

No download links available.

Codewars Javascript - Bit Counting - SOLVED IN 3 EASY STEPS! | NatokHD