Python1 Min Read LetuscrackonMarch 23, 2025 Middle N Characters in String Middle N Characters in String: Given a String S and an integer N as input, the program must print the N characters present in the middle of…
Python1 Min Read LetuscrackonMarch 14, 2025 Toggle case (String) Toggle case: Given a String S as input, the program must toggle the case of each alphabet. Boundary Condition(s):1 <= Length of S <= 100…
Python1 Min Read LetuscrackonFebruary 22, 2025 String Chars – Max Absolute Difference Sum Max Absolute Difference Sum: Given N strings containing lower case alphabets as input, the program must print the string with the maximum sum…
C1 Min Read LetuscrackonFebruary 20, 2025 String – Alphabets Frequency Given a string S as the input, print the count of distinct alphabets in S followed by their frequency of occurrence. The upper case alphabets…
Python1 Min Read LetuscrackonFebruary 19, 2025 String Pattern – Inverted U String Pattern – Inverted U: Three strings S1, S2 and S3 are passed as the input. The program must print the pattern as shown in the…
C2 Min Read LetuscrackonFebruary 8, 2025 Longest String – Diagonally Longest String – Diagonally: The program must accept a character matrix of size RxC and the position of a cell (X, Y) as the input. The…
C Python ZOHO2 Min Read LetuscrackonFebruary 1, 2025 2D String Array Sub-String Search [ZOHO] 2D String Array Sub-String Search: Given a string S of length L, the program must store the characters of the string S in a two dimensional…
C ZOHO1 Min Read LetuscrackonJanuary 31, 2025 Odd length string diagonal pattern [ZOHO] Given a string S of odd length L, the program must print it twice as diagonals with the middle letter being the point of intersection.…
Python1 Min Read LetuscrackonJanuary 22, 2025 Search String S2 in S1 Character Matrix Search String S2 in S1 Character Matrix: Given two strings S1 and S2, form a R*C matrix with the string S1 (You may repeat the string S1 to…
C1 Min Read LetuscrackonJanuary 8, 2025 String Compression String Compression: Given a string S, compress the string by its character and its count as specified in the sample input…