Code Monkey home page Code Monkey logo

Comments (6)

kangjianwei avatar kangjianwei commented on May 25, 2024

@bobobe 那个是书上的笔误,你参考一下习题集后面给出的答案就明白了...

from data-structure.

bobobe avatar bobobe commented on May 25, 2024

第1.19题,i从0开始,所以第一个数字应该是1,您写成2了?

from data-structure.

bobobe avatar bobobe commented on May 25, 2024

第2.15题,ha和hb长度相同时,您的代码会使链表构成一个环,您可以检查一下是否正确?

from data-structure.

bobobe avatar bobobe commented on May 25, 2024

第2.15题,ha和hb长度相同时,您的代码会使链表构成一个环,您可以检查一下是否正确?

我参考的是您这个博客上的答案,不知是不是最新的?https://www.cnblogs.com/kangjianwei101/p/5222655.html

from data-structure.

kangjianwei avatar kangjianwei commented on May 25, 2024

@bobobe 第1.19题,题目要求i从1开始,不是从0开始。

from data-structure.

kangjianwei avatar kangjianwei commented on May 25, 2024

@bobobe 第2.15题,在新分支的代码已经修正了。
而CFree分支的代码中,由于缺少了一个判别条件,因而其中的两个if可能会同时成立,所以导致了ha与hb长度相等时会出现循环的问题。
刚才把CFree分支的代码也修复了!

from data-structure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.