vinaykhatri
Vinay Khatri

I am a Full Stack Developer with a Bachelor's Degree in Computer Science, who also loves to write technical articles that can help fellow developers.

vinaykhatri
Vinay Khatri 27 November, 2021

Implement power function without using multiplication & division oper…

Problem Given two positive integers x and y, implement xy without using multiplication or divisi…

vinaykhatri
Vinay Khatri 27 November, 2021

Longest Substring without repeating characters

Problem Given a string, find the longest substring with unique characters Sample Input &…

vinaykhatri
Vinay Khatri 26 November, 2021

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 …

vinaykhatri
Vinay Khatri 26 November, 2021

Print all subarrays of an array having distinct elements

Problem Given an integer array, print all maximum-sized subarrays having all distinct elements i…

vinaykhatri
Vinay Khatri 26 November, 2021

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…

vinaykhatri
Vinay Khatri 26 November, 2021

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 (…

vinaykhatri
Vinay Khatri 26 November, 2021

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 …

vinaykhatri
Vinay Khatri 26 November, 2021

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 …

vinaykhatri
Vinay Khatri 26 November, 2021

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 …

vinaykhatri
Vinay Khatri 25 November, 2021

Ubuntu Features

One of the most popular Linux distributions is Ubuntu. It may be used for a wide range of functions…

vinaykhatri
Vinay Khatri 25 November, 2021

date command in Linux with Examples

This article goes through the date command of Linux. We will discuss all the flags/options and form…

vinaykhatri
Vinay Khatri 25 November, 2021

What is Debian?

Introduction Debian is a popular Linux distribution and also one of the earliest Linux distribut…