Giter VIP home page Giter VIP logo

googlehashcode2017's People

Contributors

gitter-badger avatar jarc0der avatar lyashenkogs avatar seajer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

googlehashcode2017's Issues

Remove unvalid slices

Remove unvalid slice from start positions if it's steps == 0 and turn their to pizza

v0.01-alpha refactoring

Performance measures show huge overhead on logging and getAllAvailableSteps method.
screen shot 2017-02-01 at 11 42 08 am
The project was run via:

mvn exec:java -Dexec.mainClass="com.google.hashcode.App"

finished with exeption:
medium.in exeption.txt

Estimate for the end of refactoring -> 1 hour to perform pizza slicing for all the pizzas'

Solution:

  • decrease logging for big slices. Put an if to toString methods based on an entity size
  • perform method getAvailableSteps for a part of start positions. //TODO more precise description and a diagram

The issue implementation shouldn't break the algorithm fo example.in file!

Multithreads

Write method, that run input method in 4 threads.

like:
Map availableSteps = getAllAvailableSteps(...)

shoud look like:
Map availableSteps = multiThreadStart(getAllAvailableSteps(...))

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.