Dear aspirant,
For any subject whether it is science subjects, mathematics or computers logical knowledge is needed. Without that you won't be able to proceed through the problem . Until and unless you would apply some logic to your code problem you won't be able to grab the solution behind it.
To increase your logical aspect, just study the problem sincerely and then practice your code on whichever platform you would be using. So, this is not a big deal. With time and practice you will be fluent with your programming language.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile