Category AlGO
decimal to binary Java program
Decimal to binary It’s easy to convert a number from decimal to binary and even it’s reverse conversion from binary to decimal. Algorithm to convert a number from binary to decimal To convert from base 10 to 2, we just…
java program to find gcd of two numbers
Greatest common divisor program in java The greatest common divisor for 2 number is that the largest number that completely divides both. For example, the GCD of 16, 24 is 8 that is the highest value that completely divides both…
how to detect tic tac toe win or a draw
how to detect the win of tic tac toe game? In this post I’m gonna tell you tic tac toe winning logic you will know the algorithm that is simple and clear you can implement it in any programming language…
INFIX TO POSTFIX
INFIX POSTFIX AND PREFIX Infix notation: you already know this form of mathematical expression when the operator comes between the operands, for instance, a + b. Prefix notation: In the case of preFix, the operator comes before its operands as +…