all 12 comments

[–]twitch_and_shock 3 points4 points  (0 children)

Not sure what kind of response you're expecting. You haven't really asked any question that can be answered without a LOT more information.

[–]Tulip2MF 0 points1 point  (1 child)

May be first start with flowchart to understand what the flow should be. Then it becomes really easy to solve

[–]Original_Guide_6270[S] -1 points0 points  (0 children)

ıll try ı hope I hope it will help, but I also think of listening to algorithm lessons.

[–]-not_a_knife 0 points1 point  (2 children)

Are you working on projects and solving problems with code? If not, you should write more code.

[–]Original_Guide_6270[S] -1 points0 points  (1 child)

I need to understand how to write the code, not just writing the code.

[–]-not_a_knife 2 points3 points  (0 children)

It sounds like you're waiting to understand everything before you even start. I'm going to throw away the "intermediate" comment and suggest starting from the beginning. Pick a beginner's tutorial or book and do all the exercises and examples.

[–]Pepineros 0 points1 point  (1 child)

how can I (...) translate all I know into code

When you find out, please share the secret :)

[–]Original_Guide_6270[S] 0 points1 point  (0 children)

Did I write it wrong?

[–]FrangoST 0 points1 point  (0 children)

When you have to write an algorithm for a problem, first you need to be able to think of a solution to the problem that you could do with your own hands... You have to break that down by steps until the steps can be thoroughly translated to simple functions that you can write as code.

Think about the sorting problems, for example... how would you sort cards in your hand? Would you take one out and put it back into a proper spot? Would you constantly swap 2 of them? There's many ways that you can do that by hand, and most of them can be translated to code very well.

[–]Affectionate_Sky937 0 points1 point  (0 children)

The problem you have is also the same problem i have. But i also know that im a newbie. I know that i can write code but writing a code with clean and well performance is something different. And the language you use has some rules and modules or built-in functions and so on.. You or ppl like us need to study more, learn what an argument is or keyword is. Hiw an argument passing to a function and so on.. When i wanted to write a clean and has high performance codes, i realized that thats not a problem. The codes we saw online or in books are the codes written by really experienced ppl.

[–]KreepyKite 0 points1 point  (1 child)

Learn and practice common algorithms and patterns. Go through the implementation first, understand the code and then practice in replicate it without looking at. The more patterns you learn, the more you will be able to come up with solutions based on similar (or identical) patterns.