You are viewing a single comment's thread. Return to all comments →
That's not for "completeness" but for "thread-safety", which is not a requirement of the problem.
There are several other challenges here at HackerRank for which their accepted solutions would break in a concurrent environment.
Nevertheless, it's great to mention this, therefore the thumbs up.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →
That's not for "completeness" but for "thread-safety", which is not a requirement of the problem.
There are several other challenges here at HackerRank for which their accepted solutions would break in a concurrent environment.
Nevertheless, it's great to mention this, therefore the thumbs up.