Home  >  Q&A  >  body text

python - 学习数据结构和算法是否用java实现比c++和c好?

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

PHPzPHPz2741 days ago1296

reply all(14)I'll reply

  • 迷茫

    迷茫2017-04-18 09:57:25

    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.

    reply
    0
  • PHPz

    PHPz2017-04-18 09:57:25

    Algorithms are internal skills, language is just a weapon. It doesn’t matter what weapon a person with high internal strength uses

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:57:25

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:57:25

    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.

    reply
    0
  • Cancelreply