## TCS Coding Practice Question | Checking Leap Year

Given a number N, the task is to check if N is a Leap Year or not using Command Line Arguments. Examples: Input: N =… Read More »

- Reach the numbers by making jumps of two given lengths
- Sets of pairs in C++
- Reverse middle words of a string
- C++ Program to concatenate two strings using Operator Overloading
- Iterative Letter Combinations of a Phone Number
- Number of pairs whose sum is a power of 2
- Zig-Zag traversal of a Binary Tree using Recursion
- Smallest Pair Sum in an array
- CSV file management using C++
- Program to print Step Pattern
- Find the Nth term of the series 14, 28, 20, 40,.....
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Clockwise Spiral Traversal of Binary Tree
- Passing and Returning Objects in C++
- Program to find the kth character after decrypting a string
- Shortest path on a Square
- Program to print the given Z Pattern
- Find Maximum and Minimum element in a Set in C++ STL
- Split a string in equal parts such that all parts are palindromes
- multiset erase() in C++ STL
- User defined derived data types in C++
- MakeFile in C++ and its applications
- How to delete last element from a set in C++
- Iterative Boundary traversal of Complete Binary tree
- C++ Mathematical Functions
- Find the element having different frequency than other array elements
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Sum of minimum elements of all possible sub-arrays of an array
- Finding Floor and Ceil of a Sorted Array using C++ STL
- Nested switch statement in C++

Given a number N, the task is to check if N is a Leap Year or not using Command Line Arguments. Examples: Input: N =… Read More »

Given a number N, the task is to check if N is a Prime Number or not using Command Line Arguments. Examples: Input: N =… Read More »

Given a number N, the task is to find the Prime Numbers from 1 to N using Command Line Arguments. Examples: Input: N = 7… Read More »

Given a number, the task is to find the Sum of Digits of this number using Command Line Arguments. Examples: Input: num = 687 Output:… Read More »

Given that a certain amount of money becomes T1 times itself in N1 years. The task is to find the number of years i.e. N2… Read More »

Given a binary array, the task is to count the number of 1’s and 0’s in this array using STL in C++. Examples: Input: arr[]… Read More »

Given an array, the task is to find elements which are odd and even, using STL in C++ Examples: Input: a[] = {1, 2, 3,… Read More »

Given an array and an integer N, find elements which are divisible by N, using STL in C++ Examples: Input: a[] = {1, 2, 3,… Read More »

Given an array, the task is to print or display all the reverse permutations of this array using STL in C++. Reverse permutation means, for… Read More »

Generics is the idea to allow type (Integer, String, … etc and user-defined types) to be a parameter to methods, classes and interfaces. For example,… Read More »

Given a mat[][] of size n X n, the task is to find an element X such that if the anti-clockwise traversal is begun from… Read More »

Given an array arr[] of n elements, the task is to replace all the odd positioned elements with their cubes and even positioned elements with… Read More »

Given an array, the task is to shuffle the whole array and print it. Example Input (1, 2, 3, 4, 5, 6, 7} Output {3,… Read More »

Given a binary tree, the task is to print the maximum sum of nodes of a sub-tree which is also a Binary Search Tree. Examples:… Read More »

Given two integers n and m, in a single operation n can be multiplied by either 2 or 3. The task is to convert n… Read More »