Problem 1472. nth Rational Number
Solution Stats
Problem Comments
-
2 Comments
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.
Solution
provides inexpensive method. There is only one 2nd order polynomial solution and one division.
Solution Comments
-
1 Comment
i get the same solution but the test says false
for test 9, 11
-
1 Comment
I thought we had to discount all the equivalent fractions (like 2/2) so I wrote this horrible cheat. How embarrassing.
Problem Recent Solvers124
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
7713 Solvers
-
1130 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
485 Solvers
-
Count consecutive 0's in between values of 1
254 Solvers
-
470 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!