← All PostsClassic Interview ProblemsSolutions to two classic interview exercises: transforming random-number ranges and applying Newton's method.Jun 18, 201513 wordsView all posts with this tag algorithms Build rand7 from rand5 Calculate a square root with Newton’s method Originally published on SegmentFault.