top of page
Search
Multiples of 3 and 5 without using % operator
Write a short program that prints each number from 1 to n on a new line. For each multiple of 3, print “Multiple of 3” instead of the...

Abhinaw Tripathi
Apr 13, 20171 min read
20 views
0 comments
Dynamic Programming - Egg Dropping Puzzle
Dynamic Programming -- Egg Dropping Puzzle
The following is a description of the instance of this famous puzzle involving n=2 eggs and a bu

Abhinaw Tripathi
Oct 26, 20163 min read
85 views
0 comments
Dynamic Programming - Coin Change
Dynamic Programming -- Coin Change Problem Given a value N, if we want to make change for N cents, and we have infinite supply of each...

Abhinaw Tripathi
Oct 26, 20161 min read
18 views
0 comments
Dynamic Programming - Min Cost Path
Dynamic Programming - Min Cost Path
Given a cost matrix cost[][] and a position (m, n) in cost[][],
write a function that returns cost of mi

Abhinaw Tripathi
Oct 26, 20162 min read
18 views
0 comments
Find common elements in three sorted arrays
Find common elements in three sorted arrays Given three arrays sorted in non-decreasing order, print all common elements in these arrays. Ex

Abhinaw Tripathi
Oct 25, 20162 min read
141 views
0 comments
Find k closest elements to a given value
Find k closest elements to a given valueExamples:Input: K = 4, X = 35
arr[] = {12, 16, 22, 30, 35, 39, 42, 45, 48, 50, 53, 55, 56}

Abhinaw Tripathi
Oct 25, 20162 min read
399 views
0 comments
Merge Sort
Merge SortMergeSort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges

Abhinaw Tripathi
Oct 24, 20163 min read
5 views
0 comments
Insertion Sort
Insertion SortInsertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands. For Example: Algorithm://

Abhinaw Tripathi
Oct 24, 20162 min read
3 views
0 comments
Bubble Sort
Bubble Sort Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in some...

Abhinaw Tripathi
Oct 24, 20162 min read
4 views
0 comments
Selection Sort
Selection Sort The selection sort algorithm sorts an array by repeatedly finding the minimum element from unsorted part and putting it at...

Abhinaw Tripathi
Oct 24, 20161 min read
4 views
0 comments
Happy Number(YepMe Interview Question)
Happy Number I have been interviewed in YepMe few days back .It was very nice interview taken by the technical interviewer ,simply a...

Abhinaw Tripathi
Oct 20, 20162 min read
8 views
0 comments
Reverse an array or String in java
Question:
Write a program to reverse an array or string?.
Solution:(Recursively)
1) Initialize start and end indexes
start = 0, end = n-1

Abhinaw Tripathi
Oct 18, 20161 min read
2 views
0 comments
Find Missing Number
Question:
You are given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the i

Abhinaw Tripathi
Oct 18, 20161 min read
2 views
0 comments
All About Heap Sort and its implementation in java
Heap Sort: Heap sort is a comparison based sorting technique based on Binary Heap Data-Structures.Now, What is Binary Heap? Binary...

Abhinaw Tripathi
Oct 17, 20162 min read
3 views
0 comments
Mobile Numeric Keypad Problem Solution in Java
Mobile Numeric Keypad Problem
Given the mobile numeric keypad. You can only press buttons that are up, left, right or down to the current b

Abhinaw Tripathi
Oct 17, 20163 min read
661 views
0 comments
Send Email in Java Tutorial
I am going to give you a brief about how it send email in java programs. Sending emails is one of the common tasks in real life...

Abhinaw Tripathi
Sep 20, 20165 min read
112 views
0 comments
Maximize number of 0s by flipping a subarray in java
Maximize number of 0s by flipping a sub-array Given a binary array, find the maximum number zeros in an array with one flip of a...

Abhinaw Tripathi
Sep 14, 20161 min read
25 views
0 comments
Non Fibonacci Numbers in Java
Given a positive integer n, the task is to print the nth non Fibonacci number. The Fibonacci numbers are defined as: Fib(0) = 0 Fib(1)...

Abhinaw Tripathi
Sep 14, 20161 min read
5 views
0 comments
Android TV App Building Concept
Building TV Apps Android offers a rich user experience that's optimized for apps running on large screen devices, such as...

Abhinaw Tripathi
Sep 13, 20164 min read
1 view
0 comments


Android Request Run-Time Permission
Although Android is being keep developed but the latest update to Android M is totally different since there is some major change that...

Abhinaw Tripathi
Sep 13, 20163 min read
4 views
0 comments
bottom of page