TORONTO KIDS COMPUTER CLUB | Blog
1815
paged,page-template,page-template-blog-large-image,page-template-blog-large-image-php,page,page-id-1815,paged-155,page-paged-155,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

13 May PMCA Saturday 18:30 Python Homework 21.05.08.

Question: Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1. Sample Input 1: Apple Sample Output 1: 0 Explanation: “a” is the first character which is not repeating in the string apple and occur only once. Sample Input 2: lovelivesure Sample Output 2: 1 Explanation:...

Read More