Ad
  • Custom User Avatar

    Anything which is not an object type such as maps, arrays, object literals are not allowed. You can create variables of primitive types such as numbers or may be even string

  • Custom User Avatar

    The constraints were meant to limit the space complexity to constant which is definitely useful in memory-constrained platforms such as embeded systems or even in a large scale data streaming application which can't store everything in the memory.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution