Tag easy as it is. This problem is like 387. First Unique Character in a String.
Java
1 | class Solution { |
Submission Detail
- 18 / 18 test cases passed.
- Runtime: 13 ms
- Your runtime beats 48.76 % of java submissions.
JavaScript
1 | /** |
Submission Detail
- 18 / 18 test cases passed.
- Runtime: 92 ms
- Your runtime beats 35.80 % of javascript submissions.