Given an anchor tag inside a DIV element and the task is to add target=”_blank” to the anchor element. There are two methods discussed below… Read More »

I was interviewed for the Software Developer role in Zoho Estancia campus, Chennai on November 9th, 2019. The entire process ended up on the same… Read More »

The process consisted of an online round and a maximum of two face-to-face technical rounds. I applied through amazon.jobs so it was an off-campus drive… Read More »

I applied for the 6 months internship through referral at the end of November. I thought if you apply through a referral it takes only… Read More »

Given a string str and an integer K, the task is to print the length of the longest possible substring that has exactly K unique… Read More »

Given two binary string of unequal lengths A and B, the task is to print the binary string which is the XOR of A and… Read More »

Bellman Ford’s algorithm Like other Dynamic Programming Problems, the algorithm calculates shortest paths in a bottom-up manner. It first calculates the shortest distances which have… Read More »

JPMS: JPMS i.e. Java Platform Module System is a new feature which is introduced in Java 9. With the help of the Java module system,… Read More »

Puzzle: A Geek was in a car with a helium balloon on a string that is tied to the floor. The windows are closed. When… Read More »

What would happen if your own body turned against you? That is the question cancer patients have to deal with. Cancer is basically just a… Read More »

Given a binary string str of length N, the task is to find the count of subsequences of str which are divisible by 2. Leading… Read More »

Given an integer N and an infinite number of Full Binary Trees of different depths, the task is to choose minimum number of trees such… Read More »

Given an array arr[] of N elements, the task is to remove one element from the array such that the XOR value of the array… Read More »

Given an array seats[] where seat[i] is the number of vacant seats in the ith row in a stadium for a cricket match. There are… Read More »

Given two strings X and Y containing lower-case alphabets, the task is to check whether any permutation of string X exists in Y as its… Read More »

Imagine you are a tourist in a country and your local guide is a robot. Or you are watching the early morning news and the… Read More »

Cheating in programming is acceptable. If you are stuck in your code, google it or try to find the answer from other resources. It’s a… Read More »

Given a tree with N nodes, the task is to find the sum of lengths of all the paths. Path length for two nodes in… Read More »

Given a tree with N nodes and N – 1 edges. Each edge of the tree is labeled by a string of lowercase english alphabets.… Read More »

Given a binary tree, the task is to convert it into a sorted linked list. Examples: Input: 1 / \ 2 3 Output: 1 2… Read More »