BFE
.dev
EN
Practice
Explore
EN
JavaScript Coding Questions
178. Twitter mentions
Discuss
Time complexity: O(n), Space complexity: O(n)