Fading Coder

One Final Commit for the Last Sprint

A Quick Guide to C++ Hash Tables and Maps

When solving competitive programming problems, duplicate detectino is a frequent requirement. The C++ standard library provides map and unordered_map for this purpose, while the policy-based data structures libray offers cc_hash_table and gp_hash_table as alternatives.mapThe map container is impleme...

Hash Table Implementation for Common Algorithm Problems

Theory Overview Arrays, sets, and maps are all implementations of hash tables Hash tables excel at determining whether an element has been encountered previously Problem 1: Valid Anagram Problem Link: 242. Valid Anagram - LeetCode Difficulty: Easy Solution Approach: When the chaarcter range is small...