Skip to content
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 Development Engineer Interviews.How is this...Read More
Given very large numbers n and x, we need to find the sum of digits of n^x such that :  If n^x < 10 digSum(n^x)… Read More
A permutation, also called an “arrangement number” or “order”, is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with… Read More
In this article, we will learn how to sort any list, according to the second element of the sublist present within the main list. We… Read More
In this article, we will learn how to convert Height, given in centimeter to Height in feet and inches. Examples:   Input : centimeter = 10 Output… Read More
This is a simple PHP program where we need to calculate the sum of all digits of a number. Examples: Input : 711 Output :… Read More
The difference between the two sets in Python is equal to the difference between the number of elements in two sets. The function difference() returns… Read More
Python set isdisjoint() function check whether the two sets are disjoint or not, if it is disjoint then it returns True otherwise it will return… Read More
Python Set clear() method removes all elements from the set. Python Set clear() Method Syntax: Syntax: set.clear() parameters: The clear() method doesn’t take any parameters.… Read More
The Python set add() method adds a given element to a set if the element is not present in the set in Python.  Syntax of… Read More
The substr() is a built-in function in PHP that is used to extract a part of string. Syntax: substr(string_name, start_position, string_length_to_cut) Parameters: The substr() function… Read More
In this article, we will learn how to print the pattern G using stars and white spaces. Given a number n, we will write a… Read More
In this article, we will learn how to print the pattern G using stars and white-spaces. Given a number n, we will write a program… Read More
We have learned about some basic string manipulation functions available in PHP in the article PHP | String . In this article, we will learn… Read More
Given an array of N distinct elements where elements are between 1 and N both inclusive, check if it is stack-sortable or not. An array… Read More
Python set issubset() method returns True if all elements of a set A are present in another set B which is passed as an argument,… Read More