Ad
  • Default User Avatar

    indexOf return the minimum position, so the max and min positions are same only when there is exactly one character of this type

  • Custom User Avatar

    Not kata-related. If you have a question about some language feature you don't understand, search for it on the Internet.

  • Default User Avatar

    There is a point that I don't understand: The lastIndexOf() method returns the maximum position of the current character in the string, but what about the characters that appears more than once and stands behind?

  • Default User Avatar

    The lastIndexOf() method returns the maximum position of the current character in the string, but what about the characters that appears more than once and stands behind?