In a series of number upto n Fobonaci is addition if n-1 and n-2 number.We have implemented the fibonaci code below using recursion and wi...
Read More
Showing posts with label ALGORITHM. Show all posts
Showing posts with label ALGORITHM. Show all posts
Java Programming Interview Question
Q1. Java print first 100 prime number? Q2. Print 3rd highest number in an array without using sorting? Here we have to solve the problem ...
Read More
Java find the 3rd highest element in an array with better complexity
Here we have taken 3 elements here to find the Top 3 elements from the list. public class Find3rdHighest { public static void main(Stri...
Read More
Find Maximum of an array using Binary search
Here is the solution for finding the maximum of an array which will be less than O(n)
Read More
Java create your own stack with a method which will always return the smallest number of the stack.
This question was asked in Apptio Interview in the coder pad. Q.Create an Integer Stack where you have push, pop, peek method also crea...
Read More
Given an array of numbers and number k, check whether any two numbers add up to k in Java
Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [2, 10, 5, 8] ...
Read More
Subscribe to:
Posts (Atom)