Print the Fibonacci sequence. The first Fibonacci numbers are: [sourcecode language=”CPP”] // Simple CPP Program to print Fibonacci // sequence #include <iostream> using std::cout; void… Read More »

#
All Hard Articles

Given a 3 x n board, find the number of ways to fill it with 2 x 1 dominoes. Example 1 Following are all the… Read More »

Amazon Web Services (AWS): Amazon Web Services (AWS) is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to… Read More »

Consider a tree with n nodes and root. You can jump from one node to any other node on the same height a maximum of… Read More »

Given an array a, your task is to convert it into a non-increasing form such that we can either increment or decrement the array value… Read More »

Introduction : Multiset is a collection that supports order-independent equality, like Set, but may have duplicate elements. We might think that a Multiset is a… Read More »

Salesforce came to our college to hire for Full time Software Engineer role. The process was open to only Computer Science students with an aggregate… Read More »

Given three integers A, X, and n. The task is to find the middle term in the binomial expansion series. Examples: Input : A =… Read More »

Given an array, we need to calculate the Sum of Bit-wise AND of all possible subsets of given array. Examples: Input : 1 2 3… Read More »

Introduction : Optional is an immutable object that may contain a non-null reference to another object. Each instance of this type either contains a non-null… Read More »

I was interviewed for customer returns team for Hyderabad campus. I had 1 year and 9 month experience at the time of getting interviewed. Less… Read More »

Java provides the ability to capture the log files. The need for Log capture There are multiple reasons why we may need to capture the… Read More »

JTextArea is a part of java Swing package . It represents a multi line area that displays text. It is used to edit the text… Read More »

Given an array of length N that contains only integers, the task is to print the special numbers of array. A number in this array… Read More »

Given a tree, and the cost of a subtree is defined as |S|*AND(S) where |S| is the size of the subtree and AND(S) is bitwise… Read More »

Given integers x1, x2, x3……xn, b and m, we are supposed to find the result of ((x1*x2….xn)/b)mod(m). Example 1 : Suppose that we are required… Read More »

Given a number N, print all prime number smaller than or equal to N in reverse order . For example, if N is 9, the… Read More »

Floyd’s triangle is a triangle with first natural numbers. Task is to print reverse of Floyd’s triangle. Examples: Input : 4 Output : 10 9… Read More »

Given an array and a value k. We have to find the maximum number of equal elements possible for the array so that we can… Read More »

Given n arrays of different length consisting of integers, task is to find the maximum sum of elements in that 2D array of size m… Read More »