Ad
  • Custom User Avatar

    Best solution with the nicest reference. Love it. <3

  • Custom User Avatar

    'Looks like you've solved it'

  • Custom User Avatar

    Okay,thank you so much <3

  • Custom User Avatar

    hi,

    First, think about the poiler flag, when you post code. About your current problem, you can print the input to the console right from the guts of your function, so you can debug your code.

    Last but surely not least: on codewars platefrom, you need to actually return the result, not print it to the console... x)

  • Custom User Avatar

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