If both of them return the same index while iterating through s , it's the first unique character. Time complexity: O(n). Extra memory: O(1) ...
確定! 回上一頁