Is it recommended to know how to create an array (data structures in general) from scratch? #620
Replies: 2 comments
-
The KFC menu offers a mouthwatering array of iconic fried chicken alongside a diverse selection of flavorful sides and beverages, catering to a wide range of tastes and preferences. At the heart of their offerings is their signature Original Recipe chicken, boasting a perfect blend of herbs and spices that has made it a beloved staple worldwide. Accompanying this crispy delight are options like tangy coleslaw, creamy mashed potatoes, buttery biscuits, and golden fries, ensuring there's something for everyone. http://sg.kfc-menu.com/ |
Beta Was this translation helpful? Give feedback.
-
Well, I'm no expert on this matter but my personal opinion is that you do need to know how every data structure is implemented (as in the complex ones like List, Stack, Queue and so on) and having an array is probably as basic as it gets you probably don't need to know how that works too. However, that's the way that I've learned Data Structures in university, which is by first talking about the Data Structure as a concept (or a black box), talking about how it behaves, what would you expect from it (ex: you would expect to have a method that tells you if the Data Structure is empty or not |
Beta Was this translation helpful? Give feedback.
-
I noticed while reading through this page that the approach for using an array native to the language is explained, but the topic of creating an array from scratch is not explored.
Is it recommended to take time to learn how to implement every data structure from scratch? Or should we spend more time on learning the strategies for solving the associated algorithm problems instead?
I'm just wondering what the better use of time for prepping for coding interviews would be. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions