Given an integer k and a tree with n nodes. The task is to count the number of distinct pairs of vertices which have a… Read More »

Given a directed graph and a node X. The task is to find the minimum number of edges that must be added to the graph… Read More »

Given a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… Read More »

Given k sorted arrays of different length, merge them into a single array such that the merged array is also sorted. Examples: Input : {{3,… Read More »

Object-oriented programming: As the name suggests, Object-Oriented Programming or OOPs refers to languages that uses objects in programming. Object-oriented programming aims to implement real-world entities… Read More »

Given an array containing N positive integers, the task is to find the sum of XOR of all sub-arrays of the array. Examples: Input :… Read More »

Round 1: (Online Test) Oyo Rooms visited our campus in Jan 2019. The first round was an online test conducted on hackerearth. There were 2 sections. The… Read More »

Giving k sorted arrays, each of size N, the task is to merge them into a single sorted array. Examples: Input : arr[][] = {{5,… Read More »

Given a Binary Tree, the task is to print the Reverse zigzag Order of the tree. Examples: Input: 1 / \ 2 3 / \… Read More »

In problem solving and functional programming, currying is the practice of simplifying the execution of a function that takes multiple arguments into executing sequential single-argument… Read More »

Given an array arr[], the task is to find the sum of the minimum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Given an array arr[], the task is to find the sum of the maximum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Series is a type of list in pandas which can take integer values, string values, double values and more. But in Pandas Series we return… Read More »

I went through Amazon interview experience. This is my Exp Round 1(telephonic): 1. Print nodes at K distance in BT 2. Sort array when it… Read More »

Resume filter: I got an email from a recruiter who asked about my details such as work experience, interests, technical abilities. A few days later, she… Read More »

In a network of infinitely many computers, 650 computers got infected with certain virus. The IT support team has access to five different types of… Read More »

CADENCE: OFFICE INTERVIEWS Round-1 Online Test: Section 1: 20 Aptitude MCQs for 20 Min Section 2: 10 Technical MCQ for 10 Min Section 3: Coding:… Read More »

Salesforce recently visited our campus BITS Pilani for the first time for Associate Member of Technical Staff role in Hyderabad. Round 1: Online Round (Hosted on… Read More »

Given an array arr[] of size N. The task is to find whether it is possible to make Binary Search Tree with the given array… Read More »

File locking, or locking in general, is just one of the various solutions proposed to deal with problems associated with resource sharing. File locking is… Read More »