python - 学习数据结构和算法是否用java实现比c++和c好?
PHPz
PHPz 2017-04-18 09:55:25
0
14
1382

是不是因为java语法比较简单,容易实现,直接接触算法思想,而不会像使用c++那样有很多语法细节?

PHPz
PHPz

学习是最好的投资!

reply all(14)
迷茫

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.

PHPzhong

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.

Ty80

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template