All about Data Structures, Algorithms and Programming

Find all Harshad or Niven number numbers under 100,000 in the most efficient way possible.

Que : Find all Harshad or Niven number numbers under 100,000 in the most efficient way possible. (A Harshad or Niven number is a number that is divisible by the sum of its digits. 201 is a Harshad number because it is divisible by 3 (the sum of its digits.))

Ans : http://java.dzone.com/articles/thursday-code-puzzler-harshad
Posted by Avi at 6/22/2013 02:00:00 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

View my complete profile

Labels

  • Interview Questions (8)
  • Algorithm (6)
  • HP Labs (2)
  • Programming (2)
  • Microsoft (1)
  • Puzzle (1)

Blog Archive

  • Jun 2013 (1)
  • Dec 2011 (8)

Popular Posts

  • Find largest possible number formed by elements of array.
  • Why are manhole covers round?
  • Finding Kth largest element in a array
  • Rearrange array in -ve, +ve, -ve of any given array in Ologn time
  • Find all Harshad or Niven number numbers under 100,000 in the most efficient way possible.
  • Find lighter ball out of 9 in 2 tries.
  • Number to Word converter

My Blog List

@Avinash. Picture Window theme. Powered by Blogger.