C TCS CodeVita1 Min Read LetuscrackonMarch 10, 2026 Stone Game – Remove Last – TCS CodeVita Alice and Bob are playing a game called “Stone Game”. Stone game is a two-player game. Let N be the total number of stones. In…
LetuscrackonFebruary 22, 2026 Finding Sum – TCS CodeVita The program must accept N integers and an integer P as the input. The program must print the number of subsets of…
C Java Python TCS CodeVita3 Min Read LetuscrackonFebruary 15, 2026 Collecting Candies – TCS CodeVita Krishna loves candies a lot, so whenever he gets them, he stores them so that he can eat them later whenever he wants to. He has recently…
C Dynamic Programming Python TCS CodeVita2 Min Read LetuscrackonFebruary 10, 2026 Square Free Numbers – TCS CodeVita The program must accept an integer N as the input. The program must print the number of square free numbers that divide the given…
C Dynamic Programming TCS CodeVita1 Min Read LetuscrackonFebruary 8, 2026 Uncertain Steps – TCS CodeVita Uncertain Steps: Codu is trying to go down stairs from his building to ground floor. He can go 3 ways.1) Walk 1 step at a time.2) Extend his…
C Java Python TCS CodeVita2 Min Read LetuscrackonJanuary 22, 2026 kth largest factor of N – TCS CodeVita A positive integer d is said to be a factor of another positive integer N if when N is divided by d, the remainder obtained is zero. For…
C Java Python TCS CodeVita3 Min Read LetuscrackonJanuary 19, 2026 Counting Rock Samples – TCS CodeVita Juan Marquinho is a geologist and he needs to count rock samples in order to send it to a chemical laboratory. He has a problem: The…
C Java Python TCS CodeVita2 Min Read LetuscrackonJanuary 17, 2026 Bank Compare – TCS CodeVita There are two banks – Bank A and Bank B. Their interest rates vary. You have received offers from both banks in terms of the annual rate of…
C Java Python TCS CodeVita2 Min Read LetuscrackonJanuary 16, 2026 Consecutive Prime Sum – TCS CodeVita Some prime numbers can be expressed as a sum of other consecutive prime numbers. For example 5 = 2 + 3, 17 = 2 + 3 + 5 + 7, 41 = 2 + 3 + 5 + 7…
C Python TCS CodeVita2 Min Read LetuscrackonApril 18, 2025 Digit Pairs – TCS CodeVita The program must accept N three-digit numbers as the input. The program must find the bit score for all N numbers and then print the…