Given the value of length, print the X pattern in a box using # and ” ” Examples: Input : 10 Output : ########## ##… Read More »

Machine Learning and Artificial Intelligence are creating a huge buzz worldwide. The plethora of applications in Artificial Intelligence have changed the face of technology. These… Read More »

Given a doubly linked list, the task is to find the size of that doubly linked list. For example, size of below linked list is… Read More »

The chown() function in PHP is an inbuilt function which is used to change the owner of the specified file. It returns true on success… Read More »

Given a string str, the task is to print longest palindrome word present in the string str. Examples: Input : Madam Arora teaches Malayalam Output:… Read More »

The Java.lang.math.min() function is an inbuilt function in java which returns minimum of two numbers. The arguments are taken in int, double, float and long.If… Read More »

A string is given and you have to find all the words (substrings separated by a space) which are greater than given length k. Examples:… Read More »

Given A Number n in a base 10, find the number of digits in its base b representation. Constraints : Whole Examples: Input : Number… Read More »

Find total number of non-empty substrings of a string with N characters. Here we use the word proper because we do not consider string itself… Read More »

Given a list, right rotate the list by n position. Examples : Input : n = 2 List_1 = [1, 2, 3, 4, 5, 6]… Read More »

Prerequisite : Basics of File Handling In C language, while file handling is done a word FILE is used. What is FILE? Example FILE *fp1,… Read More »

A k-rough or k-jagged number is a number whose smallest prime factor is greater than or equal to the number ‘k’. Given numbers ‘n’ and… Read More »

sleep() is defined in time() module of python 3 and python 2 Sometimes, there is a need to hault the flow of the program so… Read More »

Given a linked list, the problem is to delete all the nodes from the list that are greater than the specified value x. Examples: Input… Read More »

The java.lang.Math.ceil() returns the double value that is greater than or equal to the argument and is equal to the nearest mathematical integer. Note: If… Read More »

Design a data structure which can do following operations add() in O(n) getMinimum() in O(1) deleteMinimum() in O(1) Source : MakeMyTrip Interview. Recommended: Please try… Read More »

In mathematics, Bertrand’s Postulate states that there is a prime number in the range to where n is a natural number and n >= 4.… Read More »

You are given input as order of graph n (highest number of edges connected to a node), you have to find number of vertices in… Read More »

There are many situations where we use integer values as index in array to see presence or absence, we can use bit manipulations to optimize… Read More »

Given a square matrix mat[][] and a number k. The task is to shift first k elements of each row in the right of the… Read More »