Ad
  • Custom User Avatar

    There is always a consideration between using memory and speed. You should know that finding an index of a character in a string takes 0(n), compared to using a dictionary to store already computed values. Knowledge before commenting is crucial!