## Find index of an extra element present in one sorted array

Given two sorted arrays. There is only 1 difference between the arrays. The first array has one element extra added in between. Find the index… Read More »

## Taking String input with space in C (3 Different Methods)

We can take string input in C using scanf(“%s”, str). But, it accepts string only until it finds first space. There are 3 method by… Read More »

## Remove duplicates from sorted array

Given a sorted array, the task is to remove the duplicate elements from the array. Examples: Input : arr[] = {2, 2, 2, 2, 2}… Read More »

## Find the closest and smaller tidy number

Tidy Number are those number whose digits are arranged in non-decreasing order. Here, we are given a number and we have to find another number… Read More »

## Network configuration and trouble shooting commands in Linux

Computers are often connected to each on a network. They send request to each other in the form of packets that travels from the host… Read More »

## Convex Hull using Divide and Conquer Algorithm

A convex hull is the smallest convex polygon containing all the given points. Input is an array of points specified by their x and y… Read More »

## Program to determine class, Network and Host ID of an IPv4 address

Given a valid IPv4 address in the form of string and it follows Class Full addressing. The task is to determine class of given IPv4… Read More »

## Threaded Binary Search Tree | Deletion

A threaded binary tree node looks like following. filter_none edit close play_arrow link brightness_4 code struct Node {     struct Node *left, *right;     int info;   … Read More »

## Convert a binary number to hexadecimal number

Given a Binary Number, the task is to convert the given binary number to its equivalent hexadecimal number. The input could be very large and… Read More »

## mindepth and maxdepth in Linux find() command for limiting search to a specific directory.

How to limit search a specified directory in Linux? There is a command in Linux to search for files in a directory hierarchy known as… Read More »

## Extract bit planes from an Image in Matlab

Image is basically combination of individual pixel (dots) information. When we write that image is of 620 X 480 size, it means that image has… Read More »

## How to quickly swap two arrays of same size in C++?

Given two arrays a[] and b[] of same size, we need to swap their contents. Example : Input : a[] = {1, 2, 3, 4}… Read More »

## Count of m digit integers that are divisible by an integer n

Given two numbers m and n, count number of m digit numbers that are divisible by n. Examples: Input : m = 2 n =… Read More »

## Maximum number of Zombie process a system can handle

Zombie Process or Defunct Process are those Process which has completed their execution by exit() system call but still has an entry in Process Table.… Read More »