All Medium Articles
Given a N x N matrix where value at cell (i, j) is the cost of moving from a cell (i, j) to cell (i… Read More
Given an array of N integers and an integer M. You can change the sign(positive or negative) of any element in the array. The task… Read More
It was conducted on Cocubes. It consisted of 3 questions: 2 marks:Average of ascii characters of string. Input:abc Output:(65+66+67)/3=66 3 marks:Reverse k nodes at a… Read More
During the on-campus recruitment process, TCS conducts an E-Mail writing test of 10 minutes duration and is included in the other writing tests. This round… Read More
Pre-requisite: Procedure to E-mail Writing This is a TCS model placement email-writing question. It covers the important directions along with a sample solution to the… Read More
Pre-requisite: Procedure to E-mail Writing This is a TCS model placement email-writing question. It covers the important directions along with a sample solution to the… Read More
Pre-requisite: Procedure to E-mail Writing This is a TCS model placement email-writing question. It covers the important directions along with a sample solution to the… Read More
Online Round: First round consisted of one coding question: There is an array of pile of  chocolates, in every iteration Ayushi chose pile with maximum… Read More
Round: I An Array arr={7, 7, 8, 8, 9, 1, 1, 4, 2, 2} has numbers appearing twice or once. Duplicates appear side by side… Read More
CodeNation visited our Campus for Hiring Summer Interns. The process was as follows: 1) Online Coding Round 3 questions based on Data Structures and Algorithms,… Read More
Prerequisite: Ruby Range Operator Ruby ranges depict a set of values with a beginning and an end. Values of a range can be numbers, characters,… Read More
Round 1: It was a written test which consisted of three sections-aptitude, technical(multiple choice questions) which included mainly data structures, sorting, searching, time complexities, programming-it… Read More
Given 2 eggs and k floors, find the minimum number of trials needed in worst case. This problem is a specific case of n eggs… Read More
DSA
Our college was recently visited by Goldman Sachs. The internship process started with a technical round hosted on hackerrank consisting of 8 MCQ’s of 10… Read More
In standard Edit Distance where we are allowed 3 operations, insert, delete, and replace. Consider a variation of edit distance where we are allowed only… Read More
Round 1:  It was a online coding round on Hackerrank, there were three questions :  1. balancing bracket problem in which you have to check… Read More
Round 1: Two programming questions, one of 40 marks and the other of 60 marks on Hackerrank- Given n sentences and q queries,   for… Read More
Given two strings s1 and s2, the task is to find the length of the longest common subsequence present in both of them. Examples:   Input:… Read More
Prerequisite – Vertex Cover Problem, NP-Completeness Problem – Given a graph G(V, E) and a positive integer k, the problem is to find whether there… Read More
Given an undirected graph, how to check if there is a cycle in the graph? For example, the following graph has a cycle of 1-0-2-1. … Read More