Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or… Read More »

Given n and q, i.e, the number of ranges and number of queries, find the kth smallest element for each query (assume k>1).Print the value… Read More »

Jio is having one of the most robust and fast pace interview process. Jio came to our campus for the position Of Graduate Engineer trainee… Read More »

This was a drive for SDE-1 and SDE-2 . HackerRank Round: This was an one hour test with two questions on hackerrank platform Given a… Read More »

You are a poor person in an island. There is only one shop in this island, this shop is open on all days of the… Read More »

Forms are used in webpages for the user to enter their required details that are further send it to the server for processing. A form… Read More »

Given an array of n positive integers and a number k. Find the minimum number of swaps required to bring all the numbers less than… Read More »

Given an array of N numbers, we need to maximize the sum of selected numbers. At each step you need to select a number Ai,… Read More »

Given a number N. our task is to find the closest Palindrome number whose absolute difference with given number is minimum and absolute difference must… Read More »

This tutorial will help you download youtube video or audio with python using pafy library. Pafy library is used to retrieve YouTube content and metadata.… Read More »

Given an array of n-positive integers and a positive integer k, find a set of exactly m-elements such that difference of any two element is… Read More »

Prerequisites : NumPy in Python, Data Analysis Visualization with Python | Set 1 1. Storing DataFrame in CSV Format : Pandas provide to.csv(‘filename’, index =… Read More »

Given a decimal number m, convert it into a binary string and apply n iterations, in each iteration 0 becomes “01” and 1 becomes “10”.… Read More »

Given an array of 0’s and 1’s, we need to write a program to find the minimum number of swaps required to group all 1’s… Read More »

We have discussed loop unrolling. The idea is to increase performance by grouping loop statements so that there are less number of loop control instruction… Read More »

Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a… Read More »

A Polybius Square is a table that allows someone to convert letters into numbers. To make the encryption little harder, this table can be randomized… Read More »

Given a string S, we have to find minimum characters that we can remove to make any permutation of the string S a palindrome. In… Read More »

Given two numbers, find floor of their average without using division. Input : x = 10, y = 12 Output : 11 Input : x… Read More »

Partition given string in such manner that i’th substring is sum of (i-1)’th and (i-2)’nd substring. Examples: Input : “11235813” Output : [“1”, “1”, “2”,… Read More »