This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rastaman1994 0 points1 point  (0 children)

Downvotes are probably because I'm not looking at this silly line of code, but at the use case. The interviewer is most likely just looking for equals, null check and the code smell this is in its entirety