A video comparing one algorithm implemented in four different C++ standards: C++11, C++17, C++20 and C++23.
Final C++ Solution: https://godbolt.org/z/5esaKPhqT
Maximum Prime Difference: https://leetcode.com/problems/maximum...
Tweet: / 1779975970759266568
Chapters:
0:00 Intro
0:39 Problem Explanation
2:41 C++11 Solution
3:49 C++17 Solution
4:00 C++20 Solution
5:10 C++23 Solution
5:33 Problem with C++23 std::ranges::find_last_if
6:42 Outro
Follow me on GitHub: https://github.com/codereport
Follow me on Twitter: / code_report
Follow me on LinkedIn: / codereport