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.
t2 is a store of the numbers that would serve as the second number in a triplet. For example, if the ratio is 3, if we came across a 9, then 27 could serve as the second number.
t3 is, of course, the number that is being searched for to serve as the third number in a triplet.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Count Triplets
You are viewing a single comment's thread. Return to all comments →
t2 is a store of the numbers that would serve as the second number in a triplet. For example, if the ratio is 3, if we came across a 9, then 27 could serve as the second number.
t3 is, of course, the number that is being searched for to serve as the third number in a triplet.