Store The Largest Number You Can In Java November 18, 2013 Playing with Numbers Edit Yes, you can store the largest number YOU can think of. So, what is the largest number that came into your mind, right now? Think of addin... Read More
Check If A Point Lies On A Line May 31, 2013 Playing with Numbers Edit You might be familiar with the line equation a x +b y +c= 0 . Where a,b,c are constants and x,y are the points on the line. Now let us ch... Read More
Round Off Number To Nearest Tens May 31, 2013 Playing with Numbers Edit Here is a aktivitas on rounding off a number to nearest tens. For example, 35 will be rounded off to 30 and 36 to 40. Description Th... Read More
Check Sum Of Two Numbers To Sasaran In Array May 30, 2013 Playing with Numbers Edit In this i'll be discussing about checking whether any 2 numbers in an array can add up to give a target number. For this, i have wri... Read More
Swapping Variables Without Temp Variable May 15, 2013 Playing with Numbers Edit Before we have seen how to swap two variables with the use of temp . Now, it's time to see how to swap two variables without the use ... Read More
Get Item After The Array Is Used Up 'N' Times May 08, 2013 Playing with Numbers Edit Sometimes we may encounter a question like, if there are 5 colors and every color is picked up by a student in order and if 72 students p... Read More
Get Last Digit In A Number May 07, 2013 Playing with Numbers Edit Let me illustrate a very simple logic on getting last digit of a number. The logic is applicable on any programming language and not just... Read More
Fizzbuzz Kegiatan In Java - Interview Question April 16, 2013 Interview, Playing with Numbers Edit Hmm. Let us see the most famous interview question i.e. FizzBuzz. In this post i'll discuss what is FizzBuzz question and how to out... Read More
Calculate General Term In Java (Binomial Theorem) March 25, 2013 Playing with Numbers Edit This illustrates calculating the general term in a bionomial expansion (x+a)^n using the standard bionomial theorem formula for calculati... Read More
Find Number Of Combinations In Java March 25, 2013 Playing with Numbers Edit This lets you find no. of combinations in java using the standard n C r forumla. This is a simple logic. The formula of n C r is n!/(n... Read More
Permute Number In Java Using Formula March 25, 2013 Playing with Numbers Edit Permutation of a number can be calculated in Java using the standard permutation formula. The formula for n P r is n!/(n-r)! That is w... Read More
Finding Factorial Of A Number In Java March 24, 2013 Playing with Numbers Edit This illustrates finding factorial of a number algorithm in Java. Here i didn't use any methods for finding factorial, it is just the... Read More
Find Divisors Of A Number In Java March 24, 2013 Playing with Numbers Edit This illustrates finding divisors of a number (int) in Java using simple and dead easy logic. Here is the code. import java.util.... Read More