You need to log in or create an account to post to this user's Wall.
- david in the forum topic Find all special integers numbers from 1 to 1 million in the group General Help
@1337c0d3r
It’s like a brutal force solution… you know there are C(1 million, 2) pairs and their sum to be stored in hashtable.
It’s O(n2). Is there a better way?
Plus, what if the range expands to 1 […] - david started the forum topic Find all special integers numbers from 1 to 1 million in the group General Help
find all special integer numbers from 1 to 1 million, those special numbers meet following requirements:
1. a special number say X equals a^3 + b^3 with a and b are different positive integer numbers;
2. it can […] david became a registered member 1 year, 6 months ago
