Skip to content
GblogSDE SHEET – A Complete Guide for SDE Preparation
What is SDE Sheet? SDE Sheet is a list of the most important topics or the most popular questions that are asked in the Software… Read More
Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all… Read More
In C, variables are always statically (or lexically) scoped i.e., binding of a variable can be determined by program text and is independent of the… Read More
Given two lists sorted in increasing order, create and return a new list representing the intersection of the two lists. The new list should be… Read More
Given a binary tree, write a function to get the maximum width of the given tree. Width of a tree is maximum of widths of… Read More
Given an input string, write a function that returns the Run Length Encoded string for the input string.For example, if the input string is “wwwwaaadexxxxxx”,… Read More
Explain the functionality of the following functions.  Question 1  C++ int fun1(int x, int y) {     if (x == 0)         return y;     else         return fun1(x… Read More
Given a sorted array and a value x, the ceiling of x is the smallest element in array greater than or equal to x, and… Read More
“Pointer arithmetic and array indexing [that] are equivalent in C, pointers and arrays are different” – Wayne Throop References: http://c-faq.com/aryptr/aryptrequiv.html My Personal Notes arrow_drop_up Save
Pre-requisite: Doubly Link List Set 1| Introduction and Insertion Write a function to delete a given node in a doubly-linked list. Original Doubly Linked List  Recommended… Read More
Prerequisite : Static variables in C In C, functions are global by default. The “static” keyword before a function name makes it static. For example,… Read More
Following questions have been asked in GATE 2010 exam. 1 Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Entry Wij… Read More
Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”… Read More
You can win three kinds of basketball points, 1 point, 2 points, and 3 points. Given a total score of n, print out all the… Read More
There are various ways to overload Operators in C++ by implementing any of the following types of functions: 1) Member Function 2) Non-Member Function 3)… Read More
Write a program that converts a given tree to its Double tree. To create Double tree of the given tree, create a new duplicate for… Read More

Start Your Coding Journey Now!