All Medium Articles
Python String splitlines() method is used to split the lines at line boundaries. The function returns a list of lines in the string, including the… Read More
I applied through recruiter, i was having 4 year exp while appearing for this interview, overall it was quite lengthy process. I shared my resume… Read More
Given rational numbers, the task is to find the maximum rational number. Examples:  Input : ra_num = {{1, 2}, {2, 3}, {3, 4}, {4, 5}};… Read More
Given an n sized unsorted array, find median and mode using counting sort technique. This can be useful when array elements are in limited range. … Read More
HashMap is the Class which is under Traditional Collection and ConcurrentHashMap is a Class which is under Concurrent Collections, apart from this there are various… Read More
Given two strings contains three characters i.e ‘A’, ‘B ‘and ‘#’ only. Check is it possible to convert first string into another string by performing… Read More
Given a non-negative integer n. The problem is to check if binary representation of n is palindrome or not. Note that the actual binary representation… Read More
Given a non-negative integer n. The problem is to reverse the bits of n and print the number obtained after reversing the bits. Note that… Read More
Logarithm is the counter operation to exponentiation. The logarithm of a number is in fact the exponent to which the other number i.e. the base… Read More
Given a 2D array(m x n). The task is to check if there is any path from top left to bottom right. In the matrix,… Read More
Odious number is a nonnegative number that has an odd number of 1s in its binary expansion. The first few odious numbers are therefore 1,… Read More
Given two strings S and T. Find the positions of two letters to be swapped in S so that the hamming distance between strings S… Read More
Given an integer, set the leftmost unset bit. Leftmost unset bit is the first unset bit after most significant set bit. If all bits (after… Read More
Given an array of n integers, find the sum of f(a[i], a[j]) of all pairs (i, j) such that (1 <= i < j <=… Read More
Given two strings X and Y, we need to convert string X into an anagram of string Y with minimum replacements. If we have multiple… Read More
Pre-Requisite: Encryption, Encoding, Hashing. Encryption, Encoding, and Hahsing are similar kinds of things and have little difference between them. They all are used to change… Read More
Given three points on the x-y coordinate plane. You need to find the no. of line segments formed by making a polyline passing through these… Read More
Let A be a square matrix with all real number entries. Find two symmetric matrix P and skew symmetric matrix Q such that P +… Read More
Given a list of permutations of any word. Find the missing permutation from the list of permutations.  Examples: Input : Permutation_given[] = {"ABCD", "CABD", "ACDB",… Read More
Find the height of the binary tree given that only the nodes on the even levels are considered valid leaf nodes. The height of a binary… Read More