Tuesday, 30 June 2015

Learn Programming


Find element in a sorted matrix
Shift zeros to left and non-zeros to right
Reverse elements of array
Check whether a string is funny or not
Check for pangram
Reverse first n elements of array
Reverse string using recursion
Reverse array using recursion
Generic program to reverse elements of array
Rotate elements in an array (anti clock wise)
Frequency of numbers in array
Sort an array of three color balls
Longest positive sequence in array
Sort array of 0’s and 1’s
Print array in spiral shape
Solve following function
Retrieve unique instances of duplicate elements
Find start position of second sub array
Arrange elements of an array in random order
Move elements in even position to left and odd positions to right
Move elements in even position to left and odd positions to right (Maintain order)
Remove same adjacent character in a string
Find total deleted characters in string
Find lonely number in array
Find intersection of two arrays
Shift all zeros to left and non-zeros to right
Find pairs of numbers where sum equal to x
Sorted array to element:frequency format
Check whether two integers are equal without using comparison operator
Largest sum contiguous subarry
Find all paths
Find all paths from source to destination
Find duplicates from a given list of numbers
Bracket matching problem
Find common elements in two sorted arrays
Replace spaces in a character array with %20
Remove couples from a string
Find triplets where sum is equal to x
Find first non-repeating character in a string
Print distinct elements in every window of size k
Sort an array according to other array
Find smallest and second smallest element in array
Find minimum element in rotated array (Assume array is rotated clock wise)
How to know whether a number is power of 2
Count all set bits in an integer
Count all unset bits in an integer
Check whether nth bit is set or not
Check number is even or odd without division
Set nth bit of a number
Toggle nth bit
Low-level bit hacks that every programmer must know
Check for proper string
Minimum Number of Platforms Required for a Railway Station
Merge two sorted arrays
Find Next greater element
Partition Array
Linked List Java program
Transform one string to another
Program to build max heap
Program to build min heap
Merge Sort
Quick sort
Heap sort
print stars using recursion
Print up down stars
Print number of dots
Draw triangle using recursion
multiply two numbers recursively
compute exponent recursively
Print numbers from n to 0 recursively
Print numbers from 0 to n recursively
Reverse a string using recursion
Check for a prime number using recursion
Recursion to sum numbers from 1 to n
Recursive function to find minimum element in array
Recursion to find sum of elements in array
Recursive implementation of Binary search
Sum of digits using recursion
Recursive program to find maximum in array
Recursively find whether array is ordered or not
Find mean of array recursively
First element added with the second, the second with the third
Insertion Sort Java
Selection Sort Java
Infix to postfix converter program java
Find minimum element in array
Remove duplicate elements from array
Sum Of two arrays
Reverse an array in subset of N
Print the count of characters in duplicate array
Write a function to figure out if someone has won in a game of tic-tac-toe.
Find the missing element
Find the max product value of 3 numbers
Find the first element that appears an even number of times
Find the element that appears once in an array
Convert integers into roman equivalents
Count number of occurrences of a string
Find the permutations of a string
Add element to the end of stack
Reverse the elements of stack
Suppose there are 'N' stairs, a person wants to reach the top. Person can climb either 1 (or) 2 stairs at a time.Count the number of ways that a person can reach the top.
Java program to find cycle in a directed graph
Java program to find a cycle in undirected graph
Check whether number is even or odd using bitwise operator
Merge sort iterative implementation
Check whether array contain a duplicate value or not
Find the smallest digit and its positions in a given number
Implementing a Stack Data Structure in Java Using ArrayList

No comments:

Post a Comment