## Average of ASCII values of characters of a given string

Given a string, the task is to find the average of ASCII values of characters in the string. Examples: Input: str = “for” Output: 109… Read More »

Given a string, the task is to find the average of ASCII values of characters in the string. Examples: Input: str = “for” Output: 109… Read More »

We have discussed recursive segment tree implementation. In this post, iterative implementation is discussed. Let us consider the following problem understand Segment Trees. We have… Read More »

Given a Binary Search Tree and a number x, find floor of x in the given BST. Input : x = 14 and root of… Read More »

In C++, priority_queue implements heap. Below are some examples of creating priority queue of pair type. Max Priority queue (Or Max heap) ordered by first… Read More »

We have an array of integers and a set of range queries. For every query, we need to find product of elements in the given… Read More »

Online Round: This round was held on Hackerrank for 1:30 hrs. There were two questions in this round. A tree was given with upto 10^5 nodes.… Read More »

Before proceeding further with the fuss of immutability, let’s just take a look into the String class and its functionality a little before coming to… Read More »

Nutanix Technologies came to our campus BITS Goa for On-Campus Recruitment process. They conducted multiple rounds of screening to finally select 3 Candidates. Online Test:… Read More »

Given a 3*3 matrix, find the minimum number of changes that need to be made to it in order to turn it into a magic… Read More »

Given a binary search tree and a number N, the task is to find the sum of the cousins of the given node N if… Read More »

Interview Experience- Goldman Sachs Hi, I am Ashish Gupta, student of Mathematics and Computing branch, Delhi Technological University. I recently gave interview for Goldman Sachs… Read More »

Given two strings str1 and str2, the task is to print the number of times str2 can be formed using characters of str1. However, a… Read More »

Given an array of N integers and Q queries. Every query consists of L and R. The task is to print the second smallest element… Read More »

Given an array of positive and negative numbers. The task is to find a partition point such that none of the elements of left array… Read More »

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 »