We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
That doesn't make it good code. Good code needs to solve the problem under conceivable conditions AND be written so that it can be understood by people unfamiliar with it! If conditions change and the code must be updated, a one-line solution is horrible to work with.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
That doesn't make it good code. Good code needs to solve the problem under conceivable conditions AND be written so that it can be understood by people unfamiliar with it! If conditions change and the code must be updated, a one-line solution is horrible to work with.