The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained… Read More

GE visited our campus few days back for campus hiring .It had total of 3 rounds, including 1 online round,1 technical & 1HR round Round 1(online)MCQ… Read More

Given a Binary Tree find the length of the longest path which comprises of nodes with consecutive values in increasing order. Every node is considered… Read More

Given an array, the task is to find three elements of this array such that they are in sorted form i.e. for any three elements… Read More

The placement process was as follows 1) Online Coding Test on HackerEarth consisting of 3 questions which were relatively easy once you could understand the… Read More

The List interface provides a way to store the ordered collection. It is a child interface of Collection. It is an ordered collection of objects… Read More

Given a number n, find n’th smart number (1<=n<=1000). Smart number is a number which has at least three distinct prime factors. We are given… Read More

Java provides three ways to generate random numbers using some built-in methods and classes as listed below: java.util.Random class Math.random method : Can Generate Random… Read More

Given n distinct digits (from 0 to 9), find sum of all n digit numbers that can be formed using these digits. It is assumed… Read More

Given a positive integer n, find count of positive integers i such that 0 <= i <= n and n+i = n^i Examples : Input… Read More

The LinkedHashMap Class is just like HashMap with an additional feature of maintaining an order of elements inserted into it. HashMap provided the advantage of… Read More

Recently Mahindra Comviva visited our campus for hiring students for the profile of “Product Development Engineer”. It was a 2-day long process. DAY 1: Round… Read More

You are given a string ‘str’, the task is to check that reverses of all possible substrings of ‘str’ are present in ‘str’ or not. … Read More

Thoughtworks Technologies India Private limited, visited our college July 2015, we had tremendous experience at recruitment process throughout. (pretty Long Article, plz bare with me… Read More

Kernel modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without… Read More