Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
Prerequisites: Decision Tree, DecisionTreeClassifier, sklearn, numpy, pandas Decision Tree is one of the most powerful and popular algorithm. Decision-tree algorithm falls under the category of… Read More
Round 1: Aptitude test which consists of 30 questions . Last 2 questions are of 2 marks and as per knowledge they are very tough… Read More
Write a program to find the Average of first N natural number. Examples:   Input : 10 Output : 5.5 1+2+3+4+5+6+7+8+9+10 = 5.5 Input : 7 Output… Read More
Here we are going to find the sum of the series 1 + 11 + 111 + 1111 +…..upto N terms (where N is given).Example… Read More
Prerequisite: Command_line_argument. The problem is to find the largest integers among three using command line argument. Notes: Command-line arguments are given after the name of… Read More
Given a sequence of strings, the task is to find out the second most repeated (or frequent) string in the given sequence. (Considering no two… Read More
Prerequisite : Anonymous function In the program below, we have used anonymous (lambda) function inside the map() built-in function to find the powers of 2.… Read More
final : In Java, final is a modifier which is used for class, method and variable also. When a variable is declared with final keyword,… Read More
A string contains patterns of the form 1(0+)1 where (0+) represents any non-empty consecutive sequence of 0’s. Count all such patterns. The patterns are allowed… Read More
Given an array of n-elements. Given array is a permutation of some Arithmetic Progression. Find the minimum number of De-arrangements present in that array so… Read More
Prerequisites: sum() function, len() function, round() function, reduce(), lambda, and mean(). Given a list of numbers, the task is to find average of that list.… Read More
Cognizant Technology Solutions (CTS) has revised its whole hiring process in 2017. The recruitment process is nowhere related to the one that is supposed to… Read More
Given a number n, check if it is divisible by 17 using bitwise operators. Examples:   Input : n = 34 Output : 34 is divisible by… Read More
Since, unlike other programming languages, Python does not have arrays, instead, it has list. Using lists is more easy and comfortable to work with in… Read More
The job is simple. We need to take a list, with duplicate elements in it and generate another list which only contains the element without… Read More

Start Your Coding Journey Now!