C Dynamic Programming Java JavaScript Python2 Min Read LetuscrackonJune 11, 2024 Pet Store Dogs There are N dogs in a pet store. The pet store wants to keep the N dogs in cages.There can be two dogs in each cage. A dog can be eitheir…
Java1 Min Read LetuscrackonJune 11, 2024 Remove First And Last Till End Given a string S, print the string S removing first and last character till no characters are left. Boundary Condition :1 <= Length of…
Java1 Min Read LetuscrackonJune 11, 2024 Digits Printer Given a number N. print all the digits of the number N in descending order. Boundary Condition:0 <= N <= 99999999999999 Input…
Java1 Min Read LetuscrackonJune 11, 2024 Sort – Odd & Even Ascending An array of N numbers is passed as the input. The program must sort the odd numbers and even numbers separately in ascending order. The odd…
Java1 Min Read LetuscrackonJune 11, 2024 Reverse Columns In Matrix Given a square matrix of size N, reverse column values in the matrix and print the modified matrix as the output. Boundary Condition:1<= N…
C Java Python3 Min Read LetuscrackonJune 11, 2024 Common Alphabets N Strings N string values are passed as input to the program. Each string will contain only the alphabets a-z in lower case. A given alphabet may be…
Java1 Min Read LetuscrackonJune 11, 2024 JAVA – Generics – String Sort An array of N strings is passed as input. Implement the function to sort the strings in ascending order and print the strings as mentioned in…
Java1 Min Read LetuscrackonJune 11, 2024 JAVA – File Handling – Count 1s An array of N integers is given in a file. The program must print the number of 1s in the input. The name of the file is stored in the…
Java1 Min Read LetuscrackonJune 11, 2024 Alternate Sorting – Max Min Given an array of N integers, rearrange the array in such a way that the first element is first maximum, second element is first minimum,…
Java1 Min Read LetuscrackonJune 11, 2024 Expand alphabets occurrence A string consisting of short hand form of occurrence of alphabets will be passed as input. The program must expand the code and print the…