Arrays & Strings
Problem Statement: Write a program to print consecutive occurrences of each character in a given string.
Test case 1:
Input : affffssdaaag
Test case 2:
Test case 3:
Output: a3 Read the rest of this entry »
One of the famous interview question asked is to check if the given string has proper completion of string. This question is twisted and asked in various way, either check for brackets or any one of the bracket, braces or parenthesis or all. Read the rest of this entry »