Abhinaw TripathiApr 13, 20171 min readMultiples of 3 and 5 without using % operatorWrite 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 TripathiSep 20, 20165 min readSend Email in Java TutorialI 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 TripathiSep 14, 20161 min readMaximize number of 0s by flipping a subarray in javaMaximize 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 TripathiSep 14, 20161 min readNon Fibonacci Numbers in JavaGiven 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 TripathiAug 26, 20162 min readThe Stock Span Problem Solution in JavaThe Stock Span Problem The stock span problem is a financial problem where we have a series of n daily price quotes for a stock and we...
Abhinaw TripathiAug 17, 20162 min readBucket Sort Java ImplementationBucket Sort Bucket sort is mainly useful when input is uniformly distributed over a range. For example, consider the following problem....
Abhinaw TripathiAug 16, 20164 min readComb Sort Algo in JavaThe basic idea is to eliminate turtles, or small values near the end of the list, since in a bubble sort these slow the sorting down...
Abhinaw TripathiJun 28, 20163 min readGraph and its representations in JavaA graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. The interconnected objects...