Coder Social home page Coder Social logo

academia-ejercicios's Introduction

JavaScript Challenges

Largest Paliandrome Product

A palindromic number reads the same both ways.

The first argument and only argument sets the requirement for the total digits in a factor.

```
10 is a two-digit number
1996 is a four-digit number
```
  1. Find the largest palindrome made from the product of 2 two-digit numbers is 9009 = 91 ร— 99.
  2. Find the largest palindrome made from the product of 2 three-digit numbers. Write two tests that check the return object for the correct factor values.

Do your work in the largestPaliandromeProduct.js file.

Even Fibonacci Numbers

Each new number in the Fibonacci sequence is generated by adding the previous two Fibonacci numbers. For example by starting with the numbers 1 and 2 being the first and second numbers in the Fibonacci sequence, the first 10 numbers in the Fibonacci sequence looks like this:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89

The Exercise You will be given a stub function in the file evenFibNums.js. This function accepts one argument, maxFibValue which is a Number.

Remember, maxFibValue is the max value of a fibonacci number, it is NOT the Nth fibonacci number in the sequence.

You goal will be to sum up all the Even Numbers that are less than or equal to, but does not exceed, the maxFibValue given to you.

Largest Prime Factor

The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 ?

Do your work in the largestPrimeFactor.js file.

Getting Started

  1. Fork this repository and clone it from your personal GitHub Account
  2. In the Terminal, navigate to the newly created folder for this repository
  3. Install dependencies by running the command: npm install
  4. Run tests by running the command: npm test
  5. Your work will be one in the files named: evenFibNums.js, evenFibNums.js, largestPrimeFactor.js
  6. Make your tests pass!

From Project Euler Problem 3 and DevLeague

academia-ejercicios's People

Contributors

emortong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.