AKAbhinav Kumarincodegyan.hashnode.dev·May 4, 2025 · 2 min readHow To Find Time Complexity of an Algorithm?First question is, what is time complexity? We can say Time Complexity as the time an algorithm will take to execute. Here, we find Best Case, Average Case, Worst Case scenario. We denote the above scenario as Best Case: OmegaAverage Case: ThetaWorst...00
AKAbhinav Kumarincodegyan.hashnode.dev·May 3, 2025 · 2 min readWhy 100 lines of Code can be better than 2 lines of code...Yes, It is true!!! that 100 lines of code can be better than 2 lines of code. Let’s say you are given 9 balls. Out of 9 balls, 8 balls have same weight (say 1 kg) and only one ball is heavy (say 2 kg). Now, you have to find the position of the heavie...01G