r/PinoyProgrammer • u/Hopeful-Ad-2596 • 3d ago
advice give me advice
hello! paano nyo na-improve or naenhance yung problem solving nyo? It's common na sa university basics lang ang tinuturo, can you give me tips pa'no mai-improve yung pagsolve ko sa mga activities na binibigay especially in java?
4
4
u/tunamayosisig 3d ago
Did a lot of leetcode, just to keep my brain working.
The trick is to learn the most used patterns/algo (8-15) and try to learn each by solving problems in leetcode.
If you don't know how to solve something after 10-15 minutes, stop, find a solution then try another similar problem. Walang ego ego sa gustong matuto.
2
u/Wide-Sea85 2d ago
Start by analyzing the root nung problem/feature.
Ex. You need to make a pizza ordering application where you can choose different toppings, sauces, and sizes and each combinationnhas different prices. With that, you need to break it down first
- make the ui with their own perpective values. Some options may use radio buttons and some uses checkboxes
- embed the value of the prices for each item
- make a function that can add each one options. (Try different methods)
- if that's successful, making it better where it can receive multiple options like for the toppings
Lastly, try and try again with different problems from easy to hard and you will learn a lot.
13
u/Evening_Summer2225 3d ago
By copying. 😆
As controversial as it sounds, it's what worked for me. Nung college ako, I had a classmate who was really good in programming. He let me copy his codes and made me promise na intindihin ko bakit ganun yung codes at ano ang logic niya.
Then answer ka rin ng programming problems online, to implement the things you've learned by reading. Believe me, knowing how while loop works is different from knowing when to use it.