Code Monkey home page Code Monkey logo

solving-one-pizza-practice-problem-hashcode-2022-using-java's Introduction

Solving-One-Pizza-Practice-Problem-Hashcode-2022-Using-Java

creating a java programing oriented object for practice round hashcode 2022 problem with the simulated score board

which approach did i used ?

i used the first agorithm to solve the inputs (a_an_example.in | b_basic.in)

the algorithm is :

1- Taking all the ingredient customers ( liked Ingredient and disliked Ingredient )

2- Removing any ingredient from choosed ingredient list which is inside desliked list ingredient customer

i solve the reste inputs(c_coarse.in | d_difficult.in | e_elaborate.in) by the second algorithm

the algorithm is :

1- Reordering customers list according to the disliked ingredient list (accending order)

2- If two disliked ingredient list customers has the same size , we will take the customer with the shortes liked list ingredient.

3- Taking all the ingredient liked list customers while there is no any disliked ingredient inside the taken list

The details explanation video in the link below

https://www.youtube.com/watch?v=V8IDV97-wuo

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.