My LeetCode grinding. Trying to do a problem a day.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

problem.txt 249B

1234567891011
  1. Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.
  2. Examples:
  3. s = "leetcode"
  4. return 0.
  5. s = "loveleetcode",
  6. return 2.
  7. Note: You may assume the string contain only lowercase letters.