Skip to content
</>
CodingGyan
Topics
About
Search problems
☾
Home
/
Generics, Lambdas and Streams
λ
Generics, Lambdas and Streams
Generics, lambdas and streams made simple. 20 problems · Intermediate level.
All
Easy
Medium
Hard
20 problems
Streams
✓
Sum of Squares of Even Numbers (Loop vs Streams)
easy
✓
Second Highest Number with Streams
easy
✓
Unique Words from Lines (flatMap)
easy
✓
Group Words by Length
medium
Optional
✓
First Value Greater Than k (Optional)
easy
✓
Average of the Positive Numbers
easy
collectors
✓
Partition into Even and Odd
easy
reduce and scan
✓
Running Totals (Scan)
easy
✓
Summary Statistics in One Pass
medium
predicates
✓
Combine Predicates (and, or)
easy
zip
✓
Zip and Add Two Lists
easy
functions as values
✓
Command Dispatch Table
easy
higher order functions
✓
Function Pipeline (Composition)
medium
✓
Memoize a Function (Count the Real Calls)
hard
closures
✓
Counters with Closures
medium
lazy evaluation
✓
Lazy Sequence: Collatz
medium
lazy prefix
✓
Take While and Drop While
medium
function composition
✓
Pipeline of Operations
medium
reduce
✓
Fold Left and Fold Right
medium
higher order
✓
Retry a Task (Higher-Order Function)
medium