What help with any code #5
Answered
by
AkshatGoyal1018
AkshatGoyal1018
asked this question in
Q&A
-
|
In Akshat/java/week2 hashsetpro.java cannot pass 2 test cases because is was taking more time. Can anyone help to optimize the code. |
Beta Was this translation helpful? Give feedback.
Answered by
AkshatGoyal1018
Jan 25, 2021
Replies: 1 comment 1 reply
-
|
Got it. I used the simple normal way to do it. But the question also said to use hash set. Normal way was right but lengthy. So, hashsetpro2 is with hash set with all the test cases passed. ;) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PHAGUN-JAIN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it. I used the simple normal way to do it. But the question also said to use hash set. Normal way was right but lengthy. So, hashsetpro2 is with hash set with all the test cases passed. ;)