Tip 1 : Practice the DSA question from the CodeStudio platform.
Tip 2 : Do Competitive coding regularly, try to be consistent in short contests.
Tip 3 : Revise the core subjects basics regularly.
Tip 1 : Resume must be concise and to the point.
Tip 2 : Never add any fake skill in your resume, because they can ask anything from your skills.



1) A prime number is a number that has only two factors: 1 and the number itself.
2) 1 is not a prime number.
You are given a positive integer ‘N’. Your task is to print all prime numbers less than or equal to N.
Note: A prime number is a natural number that is divisible only by 1 and itself. Example - 2, 3, 17, etc.
You can assume that the value of N will always be greater than 1. So, the answer will always exist.


Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.
Use Dp approach



1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
You are given a sorted array 'ARR' and a number 'X'. Your task is to count the number of occurrences of 'X' in 'ARR'.


1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
Value 0 - representing an empty cell.
Value 1 - representing a fresh orange.
Value 2 - representing a rotten orange.
Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.
Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?