LetuscrackonJune 13, 2024 Pattern Printing – Numbers [ZOHO] Based on the input value of N, the program must print the pattern described below. Input Format:First line will contain the value of N. Output…
LetuscrackonJune 12, 2024 Pattern Printing Middle Letter – Odd Length String [ZOHO] Pattern Printing Middle Letter – Odd Length String [ZOHO]: An odd length string S is passed as the input. The program must print the…
LetuscrackonJune 12, 2024 Zero Insert After K Times One [ZOHO] Given a bit stream of length N consisting of 0s and 1s, insert 0 after 1 has appeared K times consecutively. Input Format:The first line…
LetuscrackonJune 12, 2024 Print 1 to N – Digits Count [ZOHO] A positive integer N is passed as the input. If we print all the numbers from 1 to N continuosly, the program must find the number of…
LetuscrackonJune 12, 2024 Decode Ways – Secret Message [Zoho] A top secret message string S containing letters from A-Z (only upper case letters) is encoded to numbers using the following…
LetuscrackonJune 12, 2024 Array Numbers – Greater Than Previous [ZOHO] N integer values (positive, zero or negative) are passed as input to the program. The program must print the values of the integers (in the…
LetuscrackonJune 12, 2024 Array LEADERS [Zoho] An array of N numbers is passed as input. The program must print all the LEADERS in the array. A number is a LEADER if it…
LetuscrackonJune 12, 2024 Smaller Matrix Search [ZOHO] Smaller Matrix Search [ZOHO]: A bigger NxN matrix is passed as the input. Also a smaller MxM matrix is passed as input. The program must print…
LetuscrackonJune 12, 2024 String – Reverse Words [ZOHO] A string S is passed as the input. The program must reverse the order of the words in the string and print them as the output. Input…
LetuscrackonJune 11, 2024 Even Length Substring – Equal Sum Halves [Zoho] Even Length Substring – Equal Sum Halves: Given a string S as input which consists only of digits from 0 to 9, print the longest…