All Projects → nicolas-zozol → Java Training Exercices

nicolas-zozol / Java Training Exercices

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Java Training Exercices

Training
Various Plone Trainings
Stars: ✭ 32 (-27.27%)
Mutual labels:  training, training-materials
Lunatech Scala 2 To Scala3 Course
Lunatech course - "Moving forward from Scala 2 to Scala 3"
Stars: ✭ 174 (+295.45%)
Mutual labels:  training, training-materials
Training
Container, Monitoring & Logging, Cloud & DevOps Tutorials and Labs
Stars: ✭ 121 (+175%)
Mutual labels:  training, training-materials
Enterprise Clojure Training
A Clojure training course for Developers and Senior Developers
Stars: ✭ 64 (+45.45%)
Mutual labels:  training, training-materials
newcomer
前端新人培训
Stars: ✭ 25 (-43.18%)
Mutual labels:  training, training-materials
Minerva Training Materials
Learn advanced data science on real-life, curated problems
Stars: ✭ 37 (-15.91%)
Mutual labels:  training, training-materials
The Complete Guide To Modern Javascript
A comprehensive, easy-to-follow ebook to learn everything from the basics of JavaScript to ES2020. Read more on my blog https://inspiredwebdev.com or buy it here http://a-fwd.to/jHO6m9t. Get the course here https://www.educative.io/courses/complete-guide-to-modern-javascript?aff=BqmB
Stars: ✭ 827 (+1779.55%)
Mutual labels:  training, training-materials
Scala Course
Scala for Statistical Computing and Data Science Short Course
Stars: ✭ 118 (+168.18%)
Mutual labels:  training, training-materials
training-materials
No description or website provided.
Stars: ✭ 47 (+6.82%)
Mutual labels:  training, training-materials
kedro-training
Find documentation and a template project for delivering Kedro training.
Stars: ✭ 26 (-40.91%)
Mutual labels:  training, training-materials
Designpatternsincsharp
Samples associated with Pluralsight design patterns in c# courses.
Stars: ✭ 149 (+238.64%)
Mutual labels:  training, training-materials
cpluspluscourse
C++ Course Taught at CERN, from Sebastien Ponce (LHCb)
Stars: ✭ 19 (-56.82%)
Mutual labels:  training, training-materials
adsy-trainings
Workshop and training materials
Stars: ✭ 13 (-70.45%)
Mutual labels:  training, training-materials
Teaching-Data-Visualisation
Presentation and exercises for the Software Sustainability Institute Research Data Visualisation Workshop (RDVW)
Stars: ✭ 15 (-65.91%)
Mutual labels:  training, training-materials
Workshop
JetBrains Kotlin Workshop Material
Stars: ✭ 577 (+1211.36%)
Mutual labels:  training, training-materials
Introductiontostats
http://tinyurl.com/cruk-stats
Stars: ✭ 22 (-50%)
Mutual labels:  training-materials
Uc Davis Cs Exams Analysis
📈 Regression and Classification with UC Davis student quiz data and exam data
Stars: ✭ 33 (-25%)
Mutual labels:  training
Reactnativekatas
This is a project that lets you participate in a fully-immersive, hands-on, and fun learning experience for React Native.
Stars: ✭ 917 (+1984.09%)
Mutual labels:  training
Python Zero To Hero Beginners Course
Materials for a Python Beginner's Course. First given at the Royal Society of Biology. Designed and delivered by Chas Nelson and Mikolaj Kundegorski.
Stars: ✭ 22 (-50%)
Mutual labels:  training
Vuejs Training
VueJS training including Vue ecosystem: HTTP (Axios), Vuex, Unit Testting (Jest)...
Stars: ✭ 6 (-86.36%)
Mutual labels:  training

hands

This is a Java exercice about finding the correct pker Hands in 5 cards.

The package contains :

  • Some starting code describing domain objects
  • Some Interfaces explaining what business code should do
    • mostly about organizing and sorting hands
  • All the needed Unit test

So the trainee must read the unit tests, and implement the business code so that the test passes. It's designed for Java beginners, so there are a lot of small steps and it's well guided

Card colors

  • s for spade: ♠️
  • d for diamond: ♦️
  • h for heart: ♥️
  • c for club: ♣️

Ah is the Ace of Heart

Where to start ?

You must pass the tests in that exact order:

  • DeckGeneratotTest
  • DeckTest
  • HandTest

The map

The group() map will allow to build a nice map for your algorithm.

Let's say you have: 2c 4s 4h Ah Ad

Key Value
2 [ 2c]
4 [ 4s, 4h]
14 [ Ah, Ad]

Remember that this is a TreeMap, keys are ordered. So you have map.size() == 3. It proves that your hand is either a Double Pair or a Trips

Let's say you have: 2c 4s 4h 4d Ad

Key Value
2 [ 2c]
4 [ 4s, 4h, 4d]
14 [ Ad]

You also have map.size() == 3.

So your algorithm must find difference between Double Pair and Trips. The Hand class has a number(cardValue) method for this.

If you have map.size()==3 && hand.number(map.keySet().first()) ==3 then you have a trips.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].