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
Given a positive number N, we need to reach to 1 in minimum number of steps where a step is defined as converting N to… Read More
Advantages Large virtual memory. More efficient use of memory. Unconstrained multiprogramming. There is no limit on degree of multiprogramming. DisadvantagesAttention reader! Don’t stop learning now.… Read More
There are Q queries. Each query is of the form of L and R. The task is to output sum of number of prime factors… Read More
The strdup() and strndup() functions are used to duplicate a string. strdup() : Syntax : char *strdup(const char *s); This function returns a pointer to a null-terminated byte… Read More
A sorted array contains 6 different numbers, only 1 number is repeated five times. So there are total 10 numbers in array. Find the duplicate… Read More
Python is an amazingly user-friendly language with the only flaw of being slow. In comparison to C, C++, and Java, it is quite slower. Online… Read More
Question : How much time Insertion sort takes to sort an array of size n in below form? arr[] = 2, 1, 4, 3, 6,… Read More
Requirement was that the candidates should have strong troubleshooting skills, strong knowledge of scripting in any language + Strong coding skills and problem solving skills.… Read More
Given an integer, count the number of trailing zeroes. For example, for n = 12, its binary representation is 1100 and number of trailing zero… Read More
In a program, comments take part in making the program become more human readable by placing the detail of code involved and proper use of… Read More
Given a 2N x 2N matrix of integers. You are allowed to reverse any row or column any number of times and in any order.… Read More
Given an array of N integers where N is even. There are two kinds of operations allowed on the array.   Increase the value of any… Read More
Given a positive weighted undirected graph, find the minimum weight cycle in it. Examples:  Attention reader! Don’t stop learning now. Get hold of all the important… Read More
Round Robin is a CPU scheduling algorithm where each process is assigned a fixed time slot in a cyclic way.  It is simple, easy… Read More
We have discussed Singly and Circular Linked List in the following post: Singly Linked List Circular Linked List Why Circular? In a singly linked list, for accessing… Read More