sadssdsad Examples: Input : Output : Input : Output : [sourcecode language=”CPP”] int main() { // Your C++ Code return 0; } [/sourcecode] My Personal… Read More »

#
All Medium Articles

Introduction : Prolog is a logic programming language. It has important role in artificial intelligence. Unlike many other programming languages, Prolog is intended primarily as… Read More »

Round 1: 3 hours online coding round This was a 3 hours coding round in which we had to code 1 problem having 50 test cases. No… Read More »

Prerequisite: Time Complexity Analysis Generally, while doing competitive programming problems on various sites, the most difficult task faced is writing the code under desired complexity… Read More »

How does the PHP file handle know some basic information like file-name, file-size, type of the file and few attributes about the file which have… Read More »

Prerequisite: Merge Sort for Linked Lists Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes… Read More »

Given n wines in a row, with integers denoting the cost of each wine respectively. Each year you can sale the first or the last… Read More »

Given a number n, count number of integers smaller than or equal to n that have odd number of set bits. Examples : Input :… Read More »

Given two array of size n and m. The task is to find the number of ways we can merge the given arrays into one… Read More »

Given an array a[1..N]. For each element at position i (1 <= i <= N). Where L(i) is defined as closest index j such that… Read More »

Given an array and two numbers M and K. We need to find sum of max M subarrays of size K (non-overlapping) in the array.… Read More »

An employee( alumnus of our college ) had taken CVs of interested students from CSE and IT department. A few students were shortlisted for the… Read More »

How to apply STL binary_search to vector of pairs(key, value), given that vector is sorted by its first value(key) struct compare in the code contains… Read More »

Given an array, task is to compute the sum of all possible maximum area rectangle which can be formed from the array elements. Also, you… Read More »

Round 1:(45 minutes) There are 30 MCQs (no negative marking) was asked and focus on following topics (cocubes platform): Data Structures and Algorithms Operating System… Read More »

Round 1: First round was on HackerEarth consisting of MCQ’s (technical and aptitude both) with 2 coding questions. http://gdevtest.geeksforgeeks.org/given-an-array-of-numbers-arrange-the-numbers-to-form-the-biggest-number/ I don’t remember. 12 students were… Read More »

A Fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across different scales. They are created by repeating a simple process… Read More »

Prerequisite – Parsing | Set 2 (Bottom Up or Shift Reduce Parsers) Shift Reduce parser attempts for the construction of parse in a similar manner… Read More »

Given a number made of single digits, find its square. It may be assumed that the single digits are 3, 6 and 9. Numbers can… Read More »

Given N elements, write a program that prints the length of the longest increasing subsequence whose adjacent element difference is one. Examples: Input : a[]… Read More »