Python LetuscrackonJanuary 20, 2026 Cyclic Path or Not The program must accept N pairs of integers as the input. Each pair contains two integers representing the starting point S and the eliding…
C Java Python TCS CodeVita 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 LetuscrackonJanuary 19, 2026 Even Position Characters in Reverse Order A string S is passed as input. The program must print the characters present at the even positions of the string in reverse order. Boundary…
C Dynamic Programming LetuscrackonJanuary 18, 2026 Single Source Shortest Path There are N cities in a country which are numbered from 1 to N.The N cities are connected by L links. Each link contains the source city,the…
C Dynamic Programming LetuscrackonJanuary 18, 2026 Toll Gate Collection ExampleInput/Output 1:Input:200 <- total distance 50 <- distance b/w tolls5 <- number of tolls60 70 120 130 140 <- distance50 70…
C Java Python TCS CodeVita 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 LetuscrackonJanuary 17, 2026 Infinity Symbol Pattern Given a matrix M of size N*N as input, the program must print the output as shown in the Example Input/Output section. Boundary Condition(s):2…
C Java Python TCS CodeVita 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 LetuscrackonJanuary 16, 2026 Double the Digits in Number Given a positive integer N, the program must print double the value for each of it’s digits. Boundary Condition(s): 1 <= N…
C Dynamic Programming LetuscrackonJanuary 15, 2026 Social Media Leader There are N people in a Facebook group.The group follows the following three rules. 1) The group leader does not follow anyone.2) Everyone in…