Implement power function without using multiplication & division oper…
Problem Given two positive integers x and y, implement xy without using multiplication or divisi…
Longest Substring without repeating characters
Problem Given a string, find the longest substring with unique characters Sample Input &…
Find the count of distinct elements in every subarray of size k
Problem Given an array of integers and a number k. Find the count of distinct elements in every …
Print all subarrays of an array having distinct elements
Problem Given an integer array, print all maximum-sized subarrays having all distinct elements i…
Partition an array into two subarrays with the same sum
Problem Given an array of integers greater than zero, find if it is possible to split it into tw…
Find all symmetric pairs in an array of pairs
Problem Given an array of pairs, find all symmetric pairs in it. Symmetric pairs are two pairs (…
Find the closest pair from two arrays
Problem Given two sorted arrays and an integer X, find one number from each array such that the …
Find two numbers with maximum sum formed by array digits
Problem Given an integer array having digits between 0 and 9, find two numbers with maximum sum …
Find an index of the maximum occurring element with equal probability
Problem Given an array of integers, find the most occurring element of the array and return any …
Ubuntu Features
One of the most popular Linux distributions is Ubuntu. It may be used for a wide range of functions…
date command in Linux with Examples
This article goes through the date command of Linux. We will discuss all the flags/options and form…
What is Debian?
Introduction Debian is a popular Linux distribution and also one of the earliest Linux distribut…