PLEASE TELL ME COMMON MISTAKES HERE…
FACING RUN TIME ERROR… WHILE MY CODES ARE PERFECT… HELP ME IF YOU…
First mistake - Writing everything in CAPS. That’s considered shouting.
Second mistake - …
Excuse me, but this is really irritating for me.
Common mistakes -
- Not reading problem carefully.
- Not conforming to input or output format. Like forgetting to add newline.
- SISEGV ← most common Runtime error. The wiki entry explains it nicely.
- Improper data type. This is important in case of languages with fixed size of data types. Like C has 32bit integers. So if you are multiplying 2 numbers which are say - 106 and 105, the result will not fit in integer, and the product would be not what you desire. Worse it may become negative in case of signed numbers.
- Caring about trivial optimization, instead of improving algorithm asymptotically ← TLE, TLE, TLE
- Not indenting code. IMO this is the worst problem. If you don’t intend your code nicely, you lose the ability to spot shrieking blunders in your code.
- Not reading FAQ thoroughly.
I will add more mistakes when I commit them. BTW I am yet to do the 6th and 7th.
1 Like