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
fsum() is inbuilt function in Python, used to find sum between some range or an iterable. To use this function we need to import the… Read More
Find the height of the binary tree given that only the nodes on the even levels are considered as the valid leaf nodes. The height of… Read More
Given a string W, change the string in such a way that it does not contain any of the “forbidden” strings S1 to Sn as… Read More
Given length and width, print the pattern in wave form using ‘/’ and ”.Examples :  Input : wave_height = 4 wave_length = 4 Output :… Read More
Python update() function in set adds elements from a set (passed as an argument) to the set.  Syntax :  set1.update(set2)  Here set1 is the set… Read More
Given n the number of terms. Find the sum of the series 0.7, 0.77, 0.777, … upto n terms.Examples :   Input : 2 Output :… Read More
The symmetric difference of two sets is the set of elements which are in either of the sets but not in both of them.  Symmetric… Read More
This in-built function of Python Set helps us to get the symmetric difference between two sets, which is equal to the elements present in either… Read More
Prerequisite – Turing Machine A problem is said to be Decidable if we can always construct a corresponding algorithm that can answer the problem correctly.… Read More
How to generate a random number in a given range in C. Examples: Input : Lower = 50, Upper = 100, Count of random Number… Read More
We all know about  Traditional Collections ( i.e. List, Set, Queue and its implemented Classes) and Concurrent Collection (i.e. ConcurrentMap interface, ConcurrentHashMap class, CopyOnWriteArrayList class… Read More
1. String rjust() The string rjust() method returns a new string of given length after substituting a given character in left side of original string.… Read More
The array_change_key_case() function is an inbuilt function in PHP and is used to change case of all of the keys in a given array either… Read More
Given K and a binary number, check if there exists k consecutive 1’s in the binary number. Examples: Input : binary number = 101010101111 k… Read More
Python library provides a number of built in methods, one such being startswith() and endswith() function which used in string related operations. startswith() Syntax str.startswith(search_string,… Read More

Start Your Coding Journey Now!