287. Find the Duplicate Number
The Pigeonhole principle
Nov 14, 20223 min read89

Search for a command to run...
Articles tagged with #codenewbies
The Pigeonhole principle

An example of using unordered_map

A simple recursive algorithm with a binary tree

The math behind the problem

Yet another example of the bitwise XOR operator

An example of using vector<bool>
