User profile: frek

User info
User name:frek
Number of posts:519
Latest posts:

Array exercise
yes, my code works differently. I just got the exact point of the exercise so should redesign my cod...

Array exercise
My code works fine with the following test cases but the problem is that I don't know what different...

Array exercise
The exercise says: A non-empty array A consisting of N integers is given. A triplet (X, Y, Z), such...

Working with array
@lastchance I didn't add that line because the array is by default assumed to have a dominator elem...

Working with array
Yes, right. I wrote this O(n) time and O1) space: [code]int solution(std::vector<int>& A) { if (A....