careercup / CtCI-6th-Edition

Cracking the Coding Interview 6th Ed. Solutions
11.33k stars 4.41k forks source link

Add Solution of q13 using stream filter, and reduce #228

Closed BerkeSoysal closed 2 years ago

BerkeSoysal commented 2 years ago

While the other solutions are also great, this uses to benefit of using reduce with a third argument.