DE Shaw visited our campus (MNIT Jaipur) in the first week of August 2020 for a 2-month software development internship. Technical Test (90 minutes) |… Read More »

Given an integer N and array arr[] consisting of 3 * N integers, the task is to find the maximum difference between first half and… Read More »

The purpose of the exit() function is to terminate the execution of a program. The “return 0”(or EXIT_SUCCESS) implies that the code has executed succesfully… Read More »

The animation is a method in which a collection of images is combined in a specific way and processed then they appear as moving images.… Read More »

During pandemic , my placement started and after getting so many rejections I was finally shortlisted in one of the company Societe Generale for interviews.… Read More »

Prerequisite – Turing Machine Design a Turing Machine for a string which contains exactly 3 repetitions of w consecutively. Approach Used : First, we will… Read More »

Given an array A[] consisting of N distinct integers, the task is to rearrange the given array such that the sum of every same-indexed non-empty… Read More »

Given a two integers N and K, the task is to find the first M and last M digits of the number NK .Examples: Input:… Read More »

Round 1: Coding Round The test was conducted on HackerRank and was for 1:30 hours. About 100 students were shortlisted on the basis of CV… Read More »

Given an array A[] consisting of N integers and an integer K, the task is to find the length of the smallest subarray with sum… Read More »

Prerequisites: Graph Theory Basics, Spanning tree. Complete Weighted Graph: A graph in which an edge connects each pair of graph vertices and each edge has… Read More »

Pre-requisite: unordered_set, unordered_map C++ provides std::unordered_set and std::unordered_map to be used as a hash set and hash map respectively. They perform insertion/deletion/access in constant average… Read More »

Given an array arr[] and an integer K, the task is to count the pair of indices (i, j) such that i !=j and concatenation… Read More »

Given a pandas Dataframe, let’s see how to rename specific column(s) names using various methods. First, let’s create a Dataframe: Python3 filter_none edit close play_arrow… Read More »

Given four integers N, A, K, n where N represents the number of sides the polygon, A represents the initial angle of the polygon, K… Read More »

Given a matrix board[][] consisting of the characters K or k, Q or q, B or b, N or n, R or r, and P… Read More »

Given an integer N and two arrays increasing[] and decreasing[], such that they have elements from 1 to N only. The task is to find… Read More »

Given three Cartesian coordinates, the task is to check if a right-angled triangle can be formed by the given coordinates. If it is possible to… Read More »

Given an un-directed and unweighted connected graph, find a simple cycle in that graph (if it exists). Simple Cycle: A simple cycle is a cycle… Read More »

In Perl, there are values of different types like strings, integers, rational numbers, and more. Coercion is responsible for converting one data type of data… Read More »