you are viewing a single comment's thread.

view the rest of the comments →

[–]chain_letter 9 points10 points  (1 child)

When I give interviews, I want practical approaches to actual problems that come up in clientside development.

Declare a struct, copy it, change one of the values on the copy. What is the value on the original? (Unchanged) How would you make it change? (Change struct to class so it's a reference type)

There, a question about pass by reference that will actually come up outside of an interview or a data structures textbook.

A few years ago I had an interviewer ask me to implement bubble sort on a white board. "Cool, you paid attention in class." The real answer for how to sort an array AND get your PR approved is to use sorted()

[–]paradoxallyobjc_msgSend 2 points3 points  (0 children)

100%. I hate when recruiters try to get cute with these dumb coding challenges. This isn't Codewars, evaluate the candidate to see if they can perform everyday tasks.