Problem 1472. nth Rational Number
Solution Stats
Problem Comments
-
2 Comments
Massimo Zanetti
on 7 Oct 2016
Is that possible to have a ranking of the solutions based on their performing time? I think that the could be a method that is fast even if more sized.
Massimo Zanetti
on 10 Oct 2016
Solution
provides inexpensive method. There is only one 2nd order polynomial solution and one division.
Solution Comments
-
1 Comment
ABDELRAHMAN
on 10 Feb 2016
i get the same solution but the test says false
for test 9, 11
-
1 Comment
Richard
on 28 Sep 2015
I thought we had to discount all the equivalent fractions (like 2/2) so I wrote this horrible cheat. How embarrassing.
Problem Recent Solvers123
Suggested Problems
-
1805 Solvers
-
Replace NaNs with the number that appears to its left in the row.
2411 Solvers
-
872 Solvers
-
Get the area codes from a list of phone numbers
778 Solvers
-
505 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!