## Choose atleast two elements from array such that their GCD is 1 and cost is minimum

Given two integer arrays arr[] and cost[] where cost[i] is the cost of choosing arr[i]. The task is to choose a subset with at least… Read More »

Given two integer arrays arr[] and cost[] where cost[i] is the cost of choosing arr[i]. The task is to choose a subset with at least… Read More »

Google Summer of Code or famously known as “GSoC” is an initiative by Google to enhance the Open Source culture and projects. Open source softwares… Read More »

Resume filter: I got a call from a recruiter who asked about my work experience. She also asked some basic questions on complexity, worst case and… Read More »

Hi, Past year i was involved actively in open source contribution. One thing lead too another, in the end i was inclined to try for… Read More »

Technology giant Google has recently revealed the method it uses to prevent phishing attacks on its employees. Google has told that its employees have been… Read More »

Given an array of integers arr[], find the number of recycled pairs in the array. A recycled pair of two numbers {a, b} has the… Read More »

Telephonic Interview 1. (Telephonic + Google Docs Shared) Q1. Given an array of integers, you need to find the local maxima. Example : [1 3… Read More »

We have to paint n boards of length {A1, A2, .. An}. There are k painters available and each takes 1 unit time to paint… Read More »

Round 1: Coding Sample In this coding sample, I was given 90 minutes to answer 2 coding questions. Question 1: Given a string A consisting… Read More »

We have to paint n boards of length {A1, A2…An}. There are k painters available and each takes 1 unit time to paint 1 unit… Read More »

Given an array of length n + 1, containing elements 1 through n and a space, Requires the use of a given swap (index i,… Read More »

There is a given binary matrix, we need to find if there exists any rectangle or square in the given matrix whose all four corners… Read More »

It was a nice experience to be part of google placement programme. There were 4 Rounds The online test consists of 4 modules. For each… Read More »

Write a function to connect all the adjacent nodes at the same level in a binary tree. Example: Input Tree A / \ B C… Read More »

The Google Foo bar challenge has been known for the last 5 years or more as a secret process of hiring developers and programmers all… Read More »