Problem 2475. Case-insensitive Character Detection

Created by Pritesh Shah in Community

Find the index of a particular character in a string ignoring case.


 Input:   x = 'aAbhhfdf'
          n = 'a'
 Output:  1 2

Because in x, at position 1 and 2 , we have a (ignoring case)

Solution Stats

78.05% Correct | 21.95% Incorrect
Last solution submitted on Dec 15, 2018

Solution Comments