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…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Count of Even Digits in Odd Positions The program must accept an integer N as the input. The task is to count and print the number of even digits in N that are present in odd…
C Java Python1 Min Read LetuscrackonJune 12, 2024 Count of Groups with Same Consecutive Digits The program must accept an integer N as the input. The program must count the number of groups in the number where the same digit appears…