How I prepare for Strings Question in Coding Interview i.e. Leetcode!!!
Solving algorithm/coding interview questions is similar to sports/music ~~~ practice make perfect. In general, to prepare for coding interviews, one has to practice as many questions as possible. However, that does not mean that we should grind blindly. It is important to recognize what we aim to achieve through Leetcoding (practicing questions) such as to familiarize with the programming concepts, data structure, coding language and methods.
Furthermore, we should also plan and balance out the type/category and difficulty level of the questions to attempt. After all, what is the use in pouring all your time doing only one type of questions e.g. hashmap, when interview questions test a variety of concept such as string, array, sorting, binary tree and etc.
My Preparation Approach — Go Thematic
For my preparation, I will attempt questions one theme at a time before moving on to other themes. However, that does not restrict me from attempting a few questions of other themes time to time.