Task: Analyze Memory and Performance Differences Between vector<vector<int and vector<pair<int,int
Task: Analyze Memory and Performance Differences Between vector<vector<int and vector<pair<int,int: a task in Terminal-Lego-15k (Harbor dataset). Write a C++ program that demonstrates and quantifies why vector<pair<int,int is "lighter" (more efficient) than vector<vector<int when storing exactly…
The task
Write a C++ program that demonstrates and quantifies why `vector<pair<int,int>>` is "lighter" (more efficient) than `vector<vector<int>>` when storing exactly two integers per entry.
Part of PrimeIntellect/Terminal-Lego-15k.