Oddly even– TCS NQT Question 2
Calculate the absolute difference between the sum of digits at odd and even positions in a large number
Master data structures and algorithms with our curated collection of coding challenges.
Calculate the absolute difference between the sum of digits at odd and even positions in a large number
Generate and print the first N terms of the Fibonacci sequence starting with 0 and 1
Extract and print all vowels from a given string, or -1 if no vowels are present.
Count trees whose shadows fall within a rectangular matrix field based on sunlight direction
Determine if a given word is a reserved keyword in a specific programming language
Calculate the initial amount of money Baba had before donating to beggars
Find the longest consecutive sequence of successful target hits given a series of shooting scores
Determine the winner of a magical race between hare and tortoise based on power points and sleep mechanics
Count occurrences of a specific alphabet in a string that has been repeated to reach a specified length
Find and print common factors of (X, Y) and (Y, Z) in descending order, allowing duplicates
Print the elements of a square matrix in an inverted L-shape pattern row by row
Print all numbers divisible by X in descending order from N to M (inclusive)