## Generate all the binary number from 0 to n

Given a positive integer number n generate all the binary number from 0 to n. Examples: Input : 5 Output : 0 1 10 11… Read More »

## Check if given four integers (or sides) make rectangle

Given four positive integers, determine if there’s a rectangle such that the lengths of its sides are a, b, c and d (in any order).… Read More »

## Self Descriptive Number

A self-descriptive number is an integer n in given base b is b digits long in which each digit at position p (the most significant… Read More »

## Reverse a doubly linked list in groups of given size

Given a doubly linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples: Recommended: Please try… Read More »

## Python list remove()

remove() is an inbuilt function in Python programming language that removes a given object from the list. It does not return any value. Syntax: list_name.remove(obj)… Read More »

## Trailing number of 0s in product of two factorials

Given two integer N or M find the number of zero’s trailing in product of factorials (N!*M!)? Examples: Input : N = 4, M =… Read More »

## Find last k digits in product of an array numbers

Given a array size of n, find the last k digits (1 <= k < 10) of product of array numbers Examples: Input : a[]… Read More »

## Longest palindrome subsequence with O(n) space

Given a sequence, find the length of the longest palindromic subsequence in it. Examples: Input : abbaab Output : 4 Input : geeksforgeeks Output :… Read More »

## Python Dictionary copy()

They copy() method returns a shallow copy of the dictionary. Syntax: dict.copy() Parameters: The copy() method doesn’t take any parameters. Returns: This method doesn’t modify… Read More »

## Python Dictionary clear()

The clear() method removes all items from the dictionary. Syntax: dict.clear() Parameters: The clear() method doesn’t take any parameters. Returns: The clear() method doesn’t return… Read More »

## PHP | strcmp() Function

Comparing two strings is one of the most commonly used string operation in programming and web development practices. The strcmp() is an inbuilt function in… Read More »

## Optimal partition of an array into four parts

Given an array of n non-negative integers. Choose three indices i.e. (0 <= index_1 <= index_ 2<= index_3 <= n) from the array to make… Read More »

What are Cookies? A cookie is a small file with the maximum size of 4KB that the web server stores on the client computer.They are… Read More »

## SQL | Alternative Quote Operator

This post is a continuation of the SQL Concatenation Operator. Now, suppose we want to use apostrophe in our literal value but we can’t use… Read More »

## Rearrange a linked list in to alternate first and last element

Given a linked list. arrange the linked list in manner of alternate first and last element. Examples: Input : 1->2->3->4->5->6->7->8 Output :1->8->2->7->3->6->4->5 Input :10->11->15->13 Output… Read More »