Skip to content
Gblog SDE 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 a tree with v vertices, find the level of each node in a tree from the source node.Examples:   Input : Output : Node Level… Read More
Self Organizing list is a list that re-organizes or re-arranges itself for better performance. In a simple list, an item to be searched is looked… Read More
The array_column() is an inbuilt function in PHP and is used to return the values from a single column in the input array.  Syntax:  array… Read More
You are given an array of 0s and 1s in random order. Segregate 0s on left side and 1s on right side of the array.… Read More
Given an array of size n. It is also given that range of numbers is from smallestNumber to smallestNumber + n where smallestNumber is the… Read More
Samsung Bangalore came to our campus to recruit for a software development engineer role. The following process took place. Round 1: Online test. The question… Read More
The maximum and minimum size of integral values are quite useful or in simple terms limits of any integral type plays quite a role in… Read More
Delete the given linked list using recursionMethod 1) If head equal to NULL then linked list is empty, we simply return. 2) Recursively delete linked list after… Read More
Majority Element: A majority element in an array A[] of size n is an element that appears more than n/2 times (and hence there is… Read More
The count_chars() is an inbuilt function in PHP and is used to perform several operations related to string like the number of an ASCII character… Read More
Which of the following statement is false? (A) Checking the ambiguity of CFL is decidable. (B) Checking whether a given context free language is regular… Read More
What is the language generated by this regular expression ? (b + ε ) (a + ab)* (A) Always starts with b (B) Can have… Read More
What’s going to happen when we compile and run the following C program snippet? #include "stdio.h" int main() {  int a = 10;  int b… Read More
Consider the set of processes with arrival time(in milliseconds), CPU burst time (in milliseconds), and priority(0 is the highest priority) shown below. None of the… Read More
The post-order traversal of a binary search tree is given by 2, 7, 6, 10, 9, 8, 15, 17, 20, 19, 16, 12. Then the… Read More

Start Your Coding Journey Now!