4 ms·
Leetcode starts with an examination of the structure of the problem - the data structures present, the best possible time complexity. Knowing both allows a ton
by btheshoe 5y ago
Leetcode starts with an examination of the structure of the problem - the data structures present, the best possible time complexity. Knowing both allows a ton of narrowing down of the method that should be used.