June 2017
Intermediate to advanced
532 pages
12h 59m
English
In this section, we are going to use linear and binary search algorithms on a small example data set:
#include <iostream> #include <vector> #include <list> #include <algorithm> #include <string> using namespace std;
struct city { string name; unsigned population; };
bool operator==(const city &a, const city &b) { return a.name == b.name && a.population == b.population; }
Read now
Unlock full access