Need help with B-181

Revision en1, by white_square, 2022-10-28 10:24:47

Question:- 181B - Number of Triplets

Question

Solution that got accepted-: 178183074

Solution that got rejected-: 178183367

Other solution using same concept

Summary: The logic of both code is same, I've tried using HashMap and HashSet but the solution does not work.

I do not understand why don't the code using HasHmap/HashSet work.

Any help is appreciated.

Thank you.

Tags java, brute force, hashmap, hashset

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English white_square 2022-10-28 10:24:47 949 Initial revision (published)