img

Is it okay to use built-in methods to solve questions?

So I'm learning DS&A in swift language and it has a variety of built in methods for various data structures e.g. sorted() (returns copy of sorted array). Would it be a problem if I code my solution using these built in features of the language? Or do I need to know the implementation of said features? I know conceptually how things work under the hood but wouldn't necessarily be able to code up every function and method from scratch (on the spot) when the interview is time bound. In your professional opinion what do you suggest I do - focus on problem solving ?? Focus on implementing every thing required ?? Both? ATM I'm preparing for intern roles

Sign in to a Grapevine account for the full experience.

Discover More

Curated from across