Common Computer Science References
Given a string, find the length of the longest substring without repeating characters:
Input: s = "abcabcbb"
Output: 3
Given a string, reverse its characters:
Input: s = "Jane"
Output: enaJ
Given a positive integer, print the following:
Input: 3
Output:
1
1 2
1 2 3
1 2 3 4
Count the total number of digits in a number:
Input: 75869
Output: 5
Find the sum of the 2s series up to n terms:
Input: 5
Output: 2 + 22 + 222 + 2222 + 22222 = 24690