You are viewing a single comment's thread. Return to all comments →
Wouldn't it be easier to use HashSet instead of HashMap? The size of your size is the number of unique element in your subarray.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Dequeue
You are viewing a single comment's thread. Return to all comments →
Wouldn't it be easier to use HashSet instead of HashMap? The size of your size is the number of unique element in your subarray.