Giter Site home page Giter Site logo

pizza-google-hash-code-2020's Introduction

Google Hash Code 2020

More-Pizza ๐Ÿ•

Written in Javascript (NodeJs)

  • Best results
  • Optimised
  • Could be better for sure :)

Description

  • Create two loops
  • Traverse the current Pizza array in reverse order and restart by removing the last value
  • When I add a value inside the sum, if it's bigger than the max value, I replace the last value inside the list by this value.
  • Optimise all stuff...

Score

Solution for the Practice Round of Google Hash Code 2020 - Score: 1,505,004,616

File Score
a_example 16 points
b_small 100 points
c_medium 4,500 points
d_quite_big 1,000,000,000 points
e_also_big 505,000,000 points
Total 1,505,004,616 points
Time to resolve all solutions 0.17s.

pizza-google-hash-code-2020's People

Contributors

valentinbourqui avatar

Watchers

James Cloos avatar  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.