Euler’s Totient function Φ(n) for an input n is the count of numbers in {1, 2, 3, …, n} that are relatively prime to n,… Read More

All Medium Articles

Basically, a microcontroller (µC) contains not only processing unit but small amount of memory (ROM, RAM etc.), few IO ports for peripherals, timer etc. We… Read More

What is a Randomized Algorithm? An algorithm that uses random numbers to decide what to do next anywhere in its logic is called a Randomized… Read More

Puzzle: Given two hourglass of 4 minutes and 7 minutes, the task is to measure 9 minutes. Solution: At 0 minutes: Start both hourglasses at… Read More

Three Employees want to know the average of their salaries. They are not allowed to share their individual salaries. Answer: 1) X adds a Random… Read More

First round was technical aptitude. Total 65 students were eligible. 15 MCQs were asked- Everyone had different sets. All sorts of questions were asked, I… Read More

Introduction: I worked on Brain Computer Interface Technology under Cybersecurity at the University of North Texas for two months as my summer internship. We closely… Read More

Aim : The aim of this project is to develop such a tool which takes an Image as input and extract characters (alphabets, digits, symbols)… Read More

Location: Gurgaon Round 1: Written Test 1. Find number of pairs with sum S in an array Sample input: [3,4,5,6,1,2] 3 Explanation: [{3,4},{6,1},{5,2}]Hey geek! It's… Read More

Given two numbers n and k where n represents a number of elements in a set, find a number of ways to partition the set… Read More

Puzzle: How can you represent days of month using two 6 sided dice? You can write one number on each face of the dice from… Read More

Given a binary array and an integer m, find the position of zeroes flipping which creates maximum number of consecutive 1’s in array.Examples : Input:… Read More

Dynamic Programming Quiz Dynamic Programming Topics Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall… Read More

GATE CSE in Past GATE-CS-2015 (Set 1) GATE-CS-2015 (Set 2) GATE-CS-2015 (Set 3) GATE-CS-2014-(Set-1) GATE-CS-2014-(Set-2) GATE-CS-2014-(Set-3) GATE CS 2013 GATE CS 2012 GATE CS 2011… Read More

Given a set of n elements, find number of ways of partitioning it. Examples: Input: n = 2 Output: Number of ways = 2 Explanation: Let… Read More

A number is Sparse if there are no two adjacent 1s in its binary representation. For example 5 (binary representation: 101) is sparse, but 6… Read More

Given a character matrix where every cell has one of the following values. 'C' --> This cell has coin '#' --> This cell is a… Read More

Given an array of integers and a number k, write a function that returns true if the given array can be divided into pairs such… Read More

Pick the best statement for the below program:Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List… Read More

Pick the best statement for the below program:Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List… Read More