Today's problem is brought to you by the Robinsons' Binary Beachball team.
Write a function that prints the numbers 1 to 10, but with a twist. If the number is even, it should print the number doubled. If the number is odd, it should print the number plus one.
Check AnswerGiven a string, determine the longest substring with no repeated characters. For example, if the input is "abc", the output should be "abc". If the input is "abcc", the output should be "abc".
Check Answer