Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 17d 12h 22m 58s17 days 12 hours 22 minutes 58 seconds.
Guide: C++ Interview Questions for HFT and Quant Developer Roles · C++ for Quant Trading: A Step-by-Step Roadmap
What does this program print?
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
std::vector<int> v{1,2,3,4,5};
int threshold = 3;
auto it = std::find_if(v.begin(), v.end(), [threshold](int x){ return x > threshold; });
if (it != v.end()) std::cout << *it;
}