Python1 Min Read LetuscrackonNovember 26, 2024 Python Program To Sort K length Sub-Strings A string S of length L and an integer K is passed as the input. The program must sort and print all…
Python1 Min Read LetuscrackonNovember 22, 2024 Frequency Sort – Numbers Given N integers, sort them based on their frequency in descending order. If the frequency is same then sort based on their values in…
C Java Python2 Min Read LetuscrackonJune 12, 2024 Sort the String Values Based on Length The program must accept N string values as the input. The program must sort the string values based on the length of each string…
Python1 Min Read LetuscrackonJune 12, 2024 Sort By Last Name N persons first and last names are passed as input. The program must sort them based on the last name. (All last names are distinct, that is…
Python1 Min Read LetuscrackonJune 11, 2024 Sort By Last Name First Name N persons first and last names are passed as input. The program must sort them based on the last name. If the last names are same, then first…
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 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…
Python1 Min Read LetuscrackonJune 11, 2024 Split String & Sort An even length string S is passed as the input. The program must split the string into two parts S1 and S2 and sort them in ascending order.…
Python1 Min Read LetuscrackonJune 11, 2024 Sort Integers in String The program must accept a string S which has only numbers and underscores as the input. The program must print only the integers…
Python1 Min Read LetuscrackonJune 11, 2024 Sort N Strings – Descending Order N strings are passed as input. The program must sort them in the descending order. Input Format: The first line contains the value of N. Next…