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 »

There is a bus with 100 labelled seats (labelled from 1 to 100). There are 100 persons standing in a queue. Persons are also labelled… Read More »

A milkman has 100 cows number from 1 to 100. Every cow gives milk according to their numbers i.e i’th cow gives i litre milk.… Read More »

A blind man is alone on a deserted island. He has two blue pills and two red pills. He must take exactly one red pill… Read More »

Given an array containing N integers. The task is to find the sum of the elements of the contiguous subarray having the smallest(minimum) sum. Examples:… Read More »

Project Title: Cat vs Dog Image Classifier Intoduction: This project aims to classify the input image as either a dog or a cat image. The… Read More »

Method Chaining: In java, Method Chaining is used to invoke multiple methods on the same object which occurs as a single statement. Method-chaining is implemented… 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 »

On 7th August, American Express came to PEC for internship hiring On campus. They had a 6+ CGPA criteria and a PRE PLACEMENT TALK. CSE,… Read More »

Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the… Read More »

Given two arrays (which may or may not be sorted). There arrays are such that they might have some common elements in them. We need… Read More »

Given an unsorted array and a number x, find index of first occurrence of x when we sort the array. If x is not present,… Read More »

Given an integer array, print all repeating elements (Elements that appear more than once) in array. The output should contain elements according to their first… Read More »

A Vectors in C++ can resize itself when more elements are added. It also allows deletion of elements. A basic idea is to double the… Read More »

Given an infinite stream of integers, find the k’th largest element at any point of time. It may be assumed that 1 <= k <=… Read More »

The Java.util.Stack.push(E element) method is used to push an element into the Stack. The element gets pushed onto the top of the Stack. Syntax: STACK.push(E… Read More »

Given N elements to be inserted into Binary Search Tree. The task is to construct a binary search tree with only insert operation and finally… Read More »

The Boolean.prototype is an inbuilt property in JavaScript which is used to add a new property to the all Boolean instances. There is constructor prototype… Read More »

Comparison of characteristics between the Agile model with other models are given below: Agile model Vs Waterfall model: Agile model Waterfall model Agile model is… Read More »

Given 3 coordinates x, y and z, the task is to determine the octant of the axial plane. Examples: Input: 2, 3, 4 Output: Point… Read More »