General Assembly Logo

JavaScript Double-Base Palindrome Challenge

In this challenge, you will complete Project Euler #36. Project Euler is a collection of math problems that can be solved in many programming languages. It's a useful website for practicing whiteboarding, or for mastering the basics of the programming languages you know or want to learn.

Prerequisites

Instructions

  1. Fork and clone this repository.
  2. Change into the new directory.
  3. Install dependencies.
  4. Create and checkout a new branch to work on.
  5. Fulfill the listed requirements.

Work in lib/challenge.js. A pull request is note required, but it is necessary if you want a code review.

You may wish to refer to FAQs related to forking, cloning.

Requirements

The decimal number, 585, is 1001001001 in binary, and is palindromic in both bases.

Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.

(Please note that the palindromic number, in either base, may not include leading zeros.)

– from Problem 36 - Project Euler

You should be running grunt nag before diagnosing any bugs, since it finds some of the most common sources of errors.

Bonus

Find a multi-digit palindrome in three bases: decimal, binary, and octal.

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.