Recently I want to review algorithmic stuff, and I use Golang.
Algorithms should be something at a higher level than language. If you can understand the idea of the algorithm, you should be able to implement it in any language.
Suppose you can only implement a certain algorithm in a specific language, then you can only learn the language, not the algorithm.
Why use C? Foreign students all use python because it is simple. So when you think about what language you will use in the future, Java obviously has more advantages, and if you learn data structures, learn data structures. Java has better encapsulation and is simpler and more convenient.
Support all the above arguments. The C language is very good, but it also has some shortcomings. For example, when it comes to hashing, using C is a little troublesome. Java is too big and has too many encapsulations. It’s still the old saying: program = data structure + algorithm. There is no need to worry about language, just use whatever language you feel comfortable with.
Recently I want to review algorithmic stuff, and I use Golang.
Algorithms should be something at a higher level than language. If you can understand the idea of the algorithm, you should be able to implement it in any language.
Suppose you can only implement a certain algorithm in a specific language, then you can only learn the language, not the algorithm.
Algorithms are internal skills, language is just a weapon. It doesn’t matter what weapon a person with high internal strength uses
Why use C? Foreign students all use python because it is simple. So when you think about what language you will use in the future, Java obviously has more advantages, and if you learn data structures, learn data structures. Java has better encapsulation and is simpler and more convenient.
Support all the above arguments.
The C language is very good, but it also has some shortcomings. For example, when it comes to hashing, using C is a little troublesome. Java is too big and has too many encapsulations. It’s still the old saying: program = data structure + algorithm. There is no need to worry about language, just use whatever language you feel comfortable with.