C Dynamic Programming2 Min Read LetuscrackonDecember 31, 2025 String & Asterisks Zig-Zag Pattern The program must accept a string S and an integer N as the input. The program must form a character matrix of size NxN with the asterisks (*).…
C Dynamic Programming1 Min Read LetuscrackonDecember 27, 2025 Matrix Zig-Zag from Top Left The program must accept an integer matrix of size R*C as the input. The program must print the elements from the top left of the…
C Dynamic Programming1 Min Read LetuscrackonDecember 24, 2025 Matrix Zig-Zag from Bottom Right The program must accept an integer matrix of size R*C as the input. The program must print the elements from the bottom right of the…
C Dynamic Programming1 Min Read LetuscrackonFebruary 8, 2025 No Consecutive Digit Substring Count No Consecutive Digit Substring Count: Orlando wants to print the count of substrings in a digit string value S (which contains only digits 0…
C Dynamic Programming2 Min Read LetuscrackonFebruary 5, 2025 Largest Integer The casino has introduced a new game in which there are M vertical chutes each containing N single digit (possibly zero) numbers. You can…
C Dynamic Programming Python TCS CodeVita4 Min Read LetuscrackonFebruary 4, 2025 Chakravyuha – TCS CodeVita Chakravyuha – TCS CodeVita: During the battle of Mahabharat, when Arjuna was far away in the battlefield, Guru Drona made a Chakravyuha…
C Dynamic Programming1 Min Read LetuscrackonFebruary 2, 2025 Pattern Printing for N Comma Separated Values Pattern Printing for N Comma Separated Values: The below program must print the given array of numbers in the given format for a given size N.…
C Dynamic Programming1 Min Read LetuscrackonJanuary 23, 2025 DP – WORD BREAK DP – WORD BREAK: A string S and N words are given as the input to the program. The program must print Yes if each word among the N words…
C Dynamic Programming2 Min Read LetuscrackonJanuary 21, 2025 Knight Kills King Knight Kills King: A knight in a chess game is determined to kill the enemy king. The chess board is of the size N*N. The knight can move…
C Dynamic Programming1 Min Read LetuscrackonJanuary 18, 2025 Stair Climbing Combinations Stair Climbing Combinations: An integer M representing the number of steps in a stair and N sorted integers representing the number of steps…