#logic problem or syntax problem ??????

27 messages · Page 1 of 1 (latest)

golden obsidian
#

somtimes i try to solve a programming problem, i usually
finds the logic we need to solve that problem, but when i try to code it it takes a lottttttttttttttttt...

is that a logic problem or syntax problem ????

i use c++ btw

wild apexBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

simple tartan
#

lot of what?

#

time?

#

just sounds like you need to continue practicing

#

you're on the right track!

golden obsidian
#

Sorry for late
Yes a lot of time a lot of thinking about the syntax i need

fringe hound
#
  1. learn your language like a hawk
#
  1. solve algorithms with the syntax at your disposal
#

Usually you learn both at the same time

main brook
#

It's not a syntax error for sure

#

A syntax error will be shown when compiling it

simple tartan
main brook
golden obsidian
main brook
golden obsidian
#

alright, im already practicing c++ 1.5-2 hours in the morning and 1.5-2 hours before sleeping

simple tartan
#

what kind of code are you writing?

#

if it's leetcode or something like that it's normal to take time. they are like puzzles, they're meant to make you think

golden obsidian
#

Codewars
Bad written problems but i enjoy them

light bronze
golden obsidian
#

Idk what to do with basic c++
Functions, loops, conditions, pointers etc...

simple tartan
#

you have to pick a project

light bronze
#

in general it's notmal to not know how to start, that will never realy change as you get better, but you will learn how to learn on how to approach problems

main brook
fossil moth
#

It's a logic problem if you can't think of the algorithm. It's a syntax problem if you have the algorithm but you still don't know how to write the code for it.