My LeetCode grinding. Trying to do a problem a day.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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.