Zain__Mansour's blog

By Zain__Mansour, 8 months ago, In English

I was coding on my 8gb ram laptop with sublime text and suddenly the laptop froze I pressed the power button to force restart .... today I was coding and I opended the task manager and "build and run" my code but, the ram usage started to increase untill the laptop froze again ...

so I will not use sublime text again

What (text editors)/(IDEs) are you using right now ? and why you're using it?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
8 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I use vs code .

  • »
    »
    8 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Are you using any extensions or edits on it? how you get input/output? from external files or from terminal?

    • »
      »
      »
      8 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Use Competitive Companion extension in Google Chrome OR Mozilla Firefox and download the same extension in VS code. Usage is pretty simple and you can also submit your code directly from the extension in VS code. (this submit functionality works only on Mozilla)

»
8 months ago, # |
  Vote: I like it 0 Vote: I do not like it
»
8 months ago, # |
  Vote: I like it 0 Vote: I do not like it

It generally happens when you use while loop. There is nothing to limit usage in sublime text. So, to overcome this problem what i do is: Use terminating condition in while loops by taking some large number that won't affect your code.

For Example