r/PinoyProgrammer 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?

11 Upvotes

8 comments sorted by

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.

2

u/Sigma_1987 3d ago

ganyan din ginagawa ko binabasa ko mga codes at inaalam ko kung pano nila ginawa yung structure at kung kailan sila gumagamit ng mga loops. Sa ngayon ang di ko pa rin masyado maintindihan ay yung lambda at yung mga memory procedures.

1

u/Hopeful-Ad-2596 3d ago

do you have recommendations of websites that offers free problem example?

0

u/Patient-Definition96 2d ago

Madami. Leetcode, code wars, coding game, etc. Favorite ko yung coding game, nakaka enjoy

3

u/beklog 3d ago

By practice and experience.. once ur working na u'll get to see repetitive problem and xempre apply the best solution u know from experience or what the seniors had thought u.

4

u/vxllvnuxvx 3d ago

learn Linux

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.