Interview Date: 3 Jan, 2022
Time allocated: 1 hour
Round 1: Given a number n, find all the numbers upto n such that the absolute difference between two consecutive digits is one in sorted manner.
Input: n=21
Output: 0 1 2 3 4 5 6 7 8 9 10 12 21
Round 2: Given a string str, find the length of the longest substring without repeating characters.
Along with this some other questions were asked as