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.
I appreciate your insight.
I've been trying to integrate your ideas about the problem into a solutions, one of which I hope will eventually pass all test cases.
I have to disagree with your expected response to the the testcase you provided. Per the discription, i, j, and k must be sequential.
I believe the answer to your test case should be 1.
Did your solution pass all testcases?
I've been able to pass most but I'm timing out.
Jack
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 →
I appreciate your insight. I've been trying to integrate your ideas about the problem into a solutions, one of which I hope will eventually pass all test cases.
I have to disagree with your expected response to the the testcase you provided. Per the discription, i, j, and k must be sequential. I believe the answer to your test case should be 1.
Did your solution pass all testcases? I've been able to pass most but I'm timing out.
Jack