All Hard Articles
Given n cities and distances between every pair of cities, select k cities to place warehouses (or ATMs or Cloud Server) such that the maximum… Read More
A person has 3000 bananas and a camel. The person wants to transport the maximum number of bananas to a destination which is 1000 KMs… Read More
Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings, eliminating hidden lines. The main task is to view buildings from… Read More
This is a famous interview question asked in Google, Paytm and many other company interviews. Below is the problem statement. Imagine you have a special keyboard… Read More
In a Medical Laboratory, you have 240 Injections, one of which is for Anesthesia for a rat. If Anesthesia injection is injected in a rat,… Read More
Online round (1 hour on hackerrank): 1. There are ‘n’ ticket windows in the railway station, ith window has ai tickets available. Price of a… Read More
Which one of the following well formed formulae is a tautology?  (A) ∀x∃yR(x,y)<–>∃y∀xR(x,y) (B) (∀x(∃yR(x,y)->S(x,y)])->∀x∃yS(x,y) (C) [∀x∃y(P(x,y)->R(x,y)]<->[∀x∃y(~P(x,y)∪R(x,y)] (D) ∀x∃yR(x,y)<–>∀y∀xR(x,y) Answer: (C) Explanation: In logic, a… Read More
Consider the sequence of machine instructions given below: MUL R5, R0, R1 DIV R6, R2, R3 ADD R7, R5, R6 SUB R8, R7, R4 In… Read More
Consider the C program below.   C #include <stdio.h> int *A, stkTop; int stkFunc (int opcode, int val) {     static int size=0, stkTop=0;     switch (opcode)     {… Read More
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is True? (A) In both AST and CFG, let node N2… Read More
Consider the following C function.  C int fun (int n){   int x = 1, k;   if (n == 1)     return x;   for (k = 1;… Read More
Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a… Read More
What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four bytes… Read More
Given a string of lowercase ASCII characters, find all distinct continuous palindromic sub-strings of it.  Examples:  Input: str = "abaaa"Output: Below are 5 palindrome sub-stringsaaaaaaababInput:… Read More
BrowserStack visited our campus during the placement season of IITs. Round 1: Online test There were 2 programs mainly related to app dev which were… Read More
Recently Myntra visited our campus for hiring full timers as well as interns . I would like to share my experience as a full time… Read More
Round 1 : Online Test Duration : 1 hr Content : 22 MCQs , 2 codes Platform : HackerRank 22 MCQs : (Non trivial) Quantitative… Read More
The worst-case time complexity of a typical implementation of QuickSort is O(n2). The worst case occurs when the picked pivot is always an extreme (smallest… Read More
Here is the hiring process they followed (in my case): Round-1: (Online Coding Round) Question-1: Abstract An orienteering map is to be given in the… Read More
Hello friends, I am sharing my placement experience at Monotype Solutions India Pvt Ltd whose recruitment process was conducted in my college. The process consisted… Read More