Skip to main content
5 events
when toggle format what by license comment
Jul 11, 2016 at 15:20 comment added Learner @AdrianLarson Thanks for your response I really appreciate your help but the answer given by AtulRajguru9 is working that's why I accepted his answer,but anyways for optimized solution will try the logic you provided.
Jul 11, 2016 at 15:08 history edited Mukesh Verma CC BY-SA 3.0
Improved Answer
Jul 11, 2016 at 15:06 comment added Mukesh Verma Yes I understand that. Ideally we should break the loop as soon as code size grows to 2. But just thought that code list may be getting used somewhere. Revising answer.
Jul 11, 2016 at 15:02 comment added Adrian Larson Hard to say it's optimized when you don't have a break statement. Also you don't really need to cache anything at all.
Jul 11, 2016 at 15:00 history answered Mukesh Verma CC BY-SA 3.0