Python1 Min Read LetuscrackonJune 9, 2024 String Zig-Zag Pattern Given a string S and an integer N as the input, the program must split the string into groups whose size is N and print them as the output in…
C Java Python1 Min Read LetuscrackonJune 9, 2024 Rotate String – N Positions A string S of length L is passed as the input. The program must rotate the string S by N position in forward direction and print the result as…
Java Python1 Min Read LetuscrackonJune 9, 2024 Reverse String Till Underscore String S is passed as the input to the program. S may or may not have a single underscore embedded in it. The program must reverse the String…
C1 Min Read LetuscrackonJune 8, 2024 Odd Length String – Middle Three Letters An odd length string S is passed as the input. The middle three letters of S must be printed as the output. Example 1;…
C1 Min Read LetuscrackonJune 8, 2024 Odd Length String Diagonal Pattern An odd length string S of length is passed as the input. The program must print the string S as two diagonal as shown in the example…
C Java Python2 Min Read LetuscrackonJune 8, 2024 Split String into Words – Length The program must accept an integer N, a string S and N integers as the input. The string S contains N words without any space.…
Python1 Min Read LetuscrackonJune 8, 2024 Recursive Split String The program must accept a string S as the input. The program must split the string recursively based on the following conditions. If the…
Python1 Min Read LetuscrackonJune 8, 2024 String Word Counter Given a string S as input which consists of multiple words separated by a space, the program must print the count C of the words which are…
C1 Min Read LetuscrackonJune 8, 2024 Common Part in string values Two string values S1 and S2 are passed as input. The last portion of S1 will be the first portion of S2. The program must print this common…
C1 Min Read LetuscrackonJune 8, 2024 String Sorted in Descending Order The program must accept N string values as the input. The program must print the N string values sorted lexicographically in descending order…