Java Algorithm Number

Java examples for Algorithm:Number

Description

Click the following links for the tutorial for Algorithm and Number.

  1. Use Packed Decimal from IBM AS400PackedDecimal
  2. Vending Machine
  3. Count Bits One via Integer.toBinaryString(n) method
  4. Calculate fibonacci recursively
  5. Calculate Quadratic Equation
  6. Pythagorean Theorem
  7. Get the maximum number of consecutive 1's in n's binary representation
  8. Solve Tower of Hanoi


  9. Find the sum of all the primes below two million.
  10. Find Pythagorean triplet
  11. Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
  12. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20
  13. Calculate N Factorial
  14. Mandelbrot from Computer Language Benchmarks Game
  15. Armstrong Number Between Two Intervals
  16. Is number an Armstrong number


  17. Binary To Decimal with while loop
  18. Calculate GCD, greatest common divisor
  19. Write your own power function
  20. prompts the user for a positive integer and then displays that integers prime factors
  21. Largest prime factor
  22. Largest palindrome product
  23. Get Even Fibonacci numbers
  24. Get 10001st prime number
  25. Implement Sieve of Eratosthenes
  26. Function implementing Kadane's Algorithm (array contains at least one positive number)
  27. repeatedly add all digits from a positive number until the result has only one digit
  28. Each integer appears exactly once except A which appears twice and B which is missing.
  29. 3-Sum brute-force algorithm
  30. Euclidean Distance
  31. Write a function to convert an integer into its roman numeral representation
  32. Hex To Decimal
  33. Binary To Decimal
  34. Decimal To Hex
  35. Equatorial To Horizontal