resource11 / js-euler-palindrome-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

General Assembly Logo

JavaScript Double-Base Palindrome Challenge

In this challenge, you will complete Project Euler #36. Project Eueler 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 progrmaming 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 = 10010010012 (binary), 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 palindrome in three bases: decimal, binary, and octal.

Source code distributed under the MIT license. Text and other assets copyright General Assembly, Inc., all rights reserved.

About

License:Other


Languages

Language:JavaScript 100.0%