www.codechef.com/learn/BP00BP12/problems/LB00
1 Users
0 Comments
2 Highlights
0 Notes
Tags
Top Highlights
For Beginner's level programming problems - we think the following works best
For Beginner's level programming problems - we think the following works best Step 1: Understand the problem statement and the sample test cases Step 2: Generate examples - Create 10 input and output cases of your own Step 3: Observations / Pattern - Observe your examples to identify the logic Step 4: Plan your code - Modularise and solve sub-components of your problem Step 5: Learn - You may come across components of you logic where you dont know how to execute the code. In such cases, ask Google or ChatGPT or your friends and learn! Step 6: Write the code - For simpler programming problems - Python solutions will be less than 15 lines in more than 95% of the cases. Step 7: Identify edge cases - If your code still fails - try and and come up with corner cases where your code may fail
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.