Ad
  • Custom User Avatar

    Wrote an explanation above 😊

  • Custom User Avatar

    Oh, I should explain a bit. This version handles emojis and especially ZWJ sequences of emojis correctly.

    For example, this family emoji πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§ is in fact there four emojis joined πŸ‘¨πŸ‘¨πŸ‘§πŸ‘§. And each emoji is two bytes.

    [...'πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§'].length
    // -> 7
    'πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§'.length
    // -> 11
    'πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§' === '\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC67\u200D\uD83D\uDC67'
    // -> true
    
  • Custom User Avatar

    This issue still preserves and is very annoying.

    I also tracked the map just to find that "correct" solutions is in fact wrong.

  • Custom User Avatar

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

  • Custom User Avatar

    It is very unclear what to do.
    Was not able to find out the shape of item object.

  • Custom User Avatar

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