Java1 Min Read LetuscrackonJanuary 26, 2025 BST – Leaf Node Count BST – Leaf Node Count: An array of N positive integers is passed as input. The program must form a binary search tree with these…
Python1 Min Read LetuscrackonJanuary 26, 2025 Longest Substring with a and b count Longest Substring with a and b count: A string S containing only the characters a and b is passed as the input. The program must print…
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…