-8

enter image description hereI am getting TLE if i am writing the line no.35 at line no.24 ,I can't get the reason of the TLE

I can't get the reason as the value of i which we are upadting in these both lines has the same value ,so what's the problem with the change in line

  • 3
    [Please do not upload images of code/data/errors.](//meta.stackoverflow.com/q/285551) – Blastfurnace Aug 30 '23 at 06:09
  • 2
    Do not ask questions about competitive coding puzzles here (but ask them on leetcode's forum). It is NOT a C++ question, but an algorithm one. Note a TLE is always a wrong algorithm choice. Also do NOT try to learn C++ from competitive coding you will only pickup bad habits, learn C++ first! – Pepijn Kramer Aug 30 '23 at 06:11
  • 1
    Learn C++ from : [a recent C++ book](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) or from [learncpp.com](https://www.learncpp.com/) that site is decent and pretty up to date. Then use [cppreference](https://en.cppreference.com/w/) for reference material (and examples). When you have done all that keep using [C++ core guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines) to keep up to date with the latest best practices since C++ keeps evolving. – Pepijn Kramer Aug 30 '23 at 06:12
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 30 '23 at 06:22
  • between those two lines there is a `continue` – 463035818_is_not_an_ai Aug 30 '23 at 06:31
  • `continue` is a devious thing and the cause of many bugs. – molbdnilo Aug 30 '23 at 08:07

0 Answers0