My LeetCode grinding. Trying to do a problem a day.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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.