Algorithm challenges and I have been best friends lately. In this tutorial, i will show you the Ways to Solve the Classic Two Sum Algorithm Question with an Explanation on Big-O.
Algorithm challenges and I have been best friends lately. I say that not to brag, or to say I’m an expert quite yet, but just to say that I have a better understanding of them than I did last week. Looking back on my knowledge comparison, I have concluded as long as a developer steadily grows in any way they can, since the tech industry constantly brings new changes, then they are on the right track to keep themselves valuable to their teams or job marketplace if they are looking for a new role. Besides shedding some light on this fact that constant learning is essential, for this week I wanted to go in greater detail to explain three different solutions explained for the most common algorithm question I keep seeing on every platform and every YouTube video; the ever-popular two-sum question. It seems like there are countless blogs written about how to solve it, some with clear explanations and some with not so clear explanations. Either way I wanted to explain my own take on it.