Problem of the Day

Today's problem is brought to you by the Robinsons' Binary Beachball team.

Problem 1: The Infinite Loop

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 Answer

Problem 2: The Mysterious String

Given 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
Submit Your Own Problem Back to Robinsons' Binary Beachball