Python1 Min Read LetuscrackonJanuary 12, 2025 Count of Power of X Count of Power of X: N positive values v(i) where i = 1 to N are passed as input to the program. The program must print the count C of the…
Python1 Min Read LetuscrackonJanuary 6, 2025 String Alphabet Count String Alphabet Count: Given a string S with only alphabets, print the alphabet and it’s count as shown in the Example Input/Output…
C1 Min Read LetuscrackonDecember 8, 2024 Count the Ships Count the Ships: A sea is represented as an N*N matrix where # represents a part of a ship and – represents water. All the ships are…
Python1 Min Read LetuscrackonDecember 8, 2024 Triangle Count from Array Program In Python An array of N integers is passed as the input to the program. The program must print the count of triangles that can be formed with the given…
C TCS CodeVita2 Min Read LetuscrackonDecember 2, 2024 Count of Inversions – Base 6 – TCS CodeVita Given a sequence of distinct numbers a1, a2, …. an, an inversion occurs if there are indices i < j such…
Python1 Min Read LetuscrackonNovember 25, 2024 Factor Count – Integer A number N is passed as input. The program should print the count of factors for the number N. Input Format:The first line will contain the…
Python1 Min Read LetuscrackonNovember 21, 2024 Non-overlapping Substring Count Two string values S and P representing a string and pattern are passed as the input to the program. The program must print the number of…
C Python1 Min Read LetuscrackonNovember 16, 2024 Alphabet Count – Repeated String A string S is passed as input to the program. The string S is repeated till the repeated string R is of length N. The program must print the…
Dynamic Programming Python1 Min Read LetuscrackonJune 13, 2024 Count Overlapping String Pattern Two string values S and P representing a string and pattern are passed as the input to the program. The program must print the number of…
Python ZOHO1 Min Read 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…