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 diameter and height, find the perimeter of a cylinder.Perimeter is the length of the outline of a two – dimensional shape. A cylinder is… Read More
n people are standing in a queue to buy entry ticket for the carnival. People present there strongly believe in chivalry. Therefore, at time =… Read More
Given an array of n string containing lowercase letters. Find the size of largest subset of string which are anagram of each others. An anagram… Read More
In this article, we will try to a way in which the elements can be removed from the set in a sequential manner. Before going… Read More
As we know that in Python, tuples are immutable, thus it cannot be changed or altered. This provides us with limited ways of reversing a… Read More
Given an array arr[] of size n containing integers. The problem is to find the length of the longest sub-array having sum equal to the… Read More
Programs to print following pattern.Examples:  Input : 6 Output : * * * * * * * * * * * * * * *… Read More
Write a program to implement Simpson’s 3/8 rule.The Simpson’s 3/8 rule was developed by Thomas Simpson. This method is used for performing numerical integrations. This… Read More
In this article, we will see how can we remove an empty tuple from a given list of tuples. We will find various ways, in… Read More
Given a string and a number N, we need to mirror the characters from the N-th position up to the length of the string in… Read More
Given a string containing only digits, restore it by returning all possible valid IP address combinations.A valid IP address must be in the form of… Read More
XNOR gives the reverse of XOR if binary bit.   First bit | Second bit | XNOR 0 0 1 0 1 0 1 0 0… Read More
Below is the example of the String startsWith() Method.   Example:   JavaScript <script> function func() {     var str = 'Geeks for Geeks';     var value = str.startsWith('Gee');… Read More
Below is the example of the String lastIndexOf() Method. Example: <script>  function func() {      var str = 'GeeksforGeeks';      var index = str.lastIndexOf('for');      document.write(index);  }  func(); … Read More
Below is the example of the String toUpperCase() Method. Example:   JavaScript <script> function func() {     var str = 'geeksforgeeks';     var string = str.toUpperCase();     document.write(string); }… Read More