All Medium Articles
You are given an array A of size N. Your task is to find the length of largest dividing sub sequence.A dividing sequence is a… Read More
Samsung R&D Bangalore visited our campus for Internship. Exam was conducted in cocubes platform. Round 1 was of 2 hours duration. 1 hour for MCQs… Read More
Given an array of N distinct elements, find the minimum number of swaps required to sort the array. Note: The problem is not asking to… Read More
Given a number where . The task is to find the minimum number of elements to be deleted in between to such that the XOR obtained from the remaining… Read More
Given an integer . The task is to find all factors of N print the product of four factors of N such that:  Sum of the… Read More
Prerequisites – Recursion, Backtracking and Stack Data Structure. A Maze is given as N*M binary matrix of blocks and there is a rat initially at… Read More
Given two unsorted arrays arr1[] and arr2[]. They may contain duplicates. For each element in arr1[] count elements less than or equal to it in… Read More
Given a non-negative number and two values and . The problem is to check whether or not N has an alternate pattern in its binary representation in the… Read More
Calendar module allows to output calendars like program, and provides additional useful functions related to the calendar. Functions and classes defined in Calendar module use… Read More
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages… Read More
The asctime() function is defined in the ctime header file. The asctime() function converts the given calendar time of structure tm to a character representation… Read More
Write a function to print spiral order traversal of a tree. For below tree, function should print 1, 2, 3, 4, 5, 6, 7.   We… Read More
Round 1: It was a coding round hosted on cocubes.com. There were one 3 marks question and two 5 marks question which were needed to… Read More
The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves… Read More
Cognizant came to our campus (BIT Mesra) this year (2018) for the hiring process. It was a 2 day long process i.e First day (Online… Read More
Round 1(Online Test): There were three questions on cocubes: First(2 marks): https://www.geeksforgeeks.org/calculate-the-total-fine-to-be-collected/ Second(3 marks): Find the smallest number which when appended to given number will… Read More
Recently, Samsung R&D Bangalore came to our college for hiring interns for summer 2019. The overall process had 3 rounds. Round 1 (Online Coding Test):… Read More
The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves… Read More
The headSet() method of SortedSet interface in Java is used to return a view of the portion of this set whose elements are strictly less… Read More
Round 1: Hackerrank Round It was 2 hr coding round. Both the questions were on matrix. Question 1 : M x N matrix with cell… Read More