Rahul KushwahaFun with C++ Ranges Library[1/n]: Convert hasNext style iterator to RangeThis is a very short article on how to convert a hasNext style iterator to a ranges object. Imagine we have an iterator of the following…Aug 27, 2022Aug 27, 2022
Rahul KushwahaHow to avoid Checked Exceptions in Java Functional CodeWhen we are writing beautiful, functional, reactive code in Java, and suddenly encounter a function requiring a checked exception, the…Nov 2, 20212Nov 2, 20212
Rahul KushwahaCopy Elision C++C++ has a lot of nice tricks and optimizations but sometimes those tricks can leave you scratching your head. One such instance happened to…Oct 29, 20211Oct 29, 20211
Rahul KushwahaTernary SearchGiven a unimodal function, the Ternary Search algorithm can be used to find the maximum or minimum value of a function.May 29, 2021May 29, 2021