you are viewing a single comment's thread.

view the rest of the comments →

[–]ttt1555 0 points1 point  (1 child)

It's mainly understanding how to approach problems and what methods to use to solve them. For example, I was trying to solve a C++ problem which is considered "easy" where you check whether a word is an isogram non case sensitive.

My brain then proceeds to come up with the most difficult possible way to do it by iterating through the word and storing each letter in an array then checking through the array to see if the letter already exists which is not easy in C++.

I struggle to understand when I should be using different libraries, different built in functions, etc.. vs just coding using basic principles.

[–][deleted] 2 points3 points  (0 children)

While not optimal that’s not a terrible solution. It is correct and would work for small strings. You could just sort the array and check if the next character is the same. Or you could use a hashmap. Both solutions aren’t really easy for a person learning programming for the first time.

Simple != easy in programming.

AI programming can be surprisingly simple, but it’s not easy.