leetcode
leetcode copied to clipboard
Update: 0169-majority-element.cpp
Updated the previous solution (use of hashmaps) to a more optimized Boyer Moore algorithm as explained in the Neetcode's Video Tutorial
- File(s) Modified: 0169-majority-element.cpp
- Language(s) Used: C++
- Submission URL: https://leetcode.com/problems/majority-element/submissions/955394555/
Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.