Overview
Syllabus
Do you feel like a coffee break?
Introducing the Countdown game and its rules
Introducing the Haskell algorithm translated to Java
Computing all the permutations of all the subsets
Splitting the sets to apply the four operations
Filtering the invalid operations
Computing the final result and the string of characters
Using Data Oriented Programming to model the data
Wrapping up this algorithm
Writing a bottom up algorithm leveraging Data Oriented Programming
Using Optional to discard invalid mapping operations
Getting rid of Optional with Stream.mapMulti
Implementing resolve with an exhaustive switch and pattern matching
Using a Gatherer to inserting an element at a specific place in a sorted stream
Using anonymous classes and non-denotable types
Using the Gatherer in the final process
Making the algorithm efficient
Writing the final algorithm using Records
Comparing the two algorithms
That's it for today, talk to you soon!
Taught by
Java