We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Count Triplets
- Discussions
Count Triplets
Count Triplets
Sort by
recency
|
806 Discussions
|
Please Login in order to post a comment
curious to know what is the problem with below code?
I got test 6 and 10 wrong. Any help will be appreciated!
Here is my code:
It was very tricky, I should say, the first task on which I've spent a significant amount of time.
if r = 3, can we call the following three number a triplet:
Isn't it kind of deciving that in first line geometric progression is described to be (I,J,K) and R where J=R*I and k = R*J and THEN THERE IS A STATEMENT:
** I < J < K**
Which indicates that there is no corner case for r=1 as it would not meet this requirement. Therefore there shouldn't be test case for R=1 as it does not meet the criteria described at the beggining