Git Product home page Git Product logo

Comments (13)

liuzhenbin96 avatar liuzhenbin96 commented on July 24, 2024

思路挺清晰的,最开始只能想到暴力解法,后面那些不容易想到

from algorithm007-class02.

hjz520499 avatar hjz520499 commented on July 24, 2024

多看高手的解法,不仅仅是学习他们的解法,更是要学习他们的思维

from algorithm007-class02.

hongyangliao avatar hongyangliao commented on July 24, 2024

三次反转真是神仙操作

from algorithm007-class02.

jeff-liu14 avatar jeff-liu14 commented on July 24, 2024

多看高手的解法,不仅仅是学习他们的解法,更是要学习他们的思维

对的,一开始不会的话还是先理解解法,不要直接死记代码,代码多写几遍就熟悉了但是解题思路还是要理解

from algorithm007-class02.

Gzyequan avatar Gzyequan commented on July 24, 2024

我怎么觉得三次反转跟暴力没什么本质区别

from algorithm007-class02.

minglangzhao avatar minglangzhao commented on July 24, 2024

三次反转**比较牛逼,时间复杂度和循环替换一样相当于对数组进行了2个2分遍历所以是o(n)

from algorithm007-class02.

zcrazycpp avatar zcrazycpp commented on July 24, 2024

三次反转是最直观和最好理解的。

from algorithm007-class02.

lbbniu avatar lbbniu commented on July 24, 2024

环状替换和三次反转时间复杂度都是O(n), 感觉环状替换要优于三次反转,环状替换要比三次反转交换的次数要少

from algorithm007-class02.

xzhspeed avatar xzhspeed commented on July 24, 2024

666 每种都实现一波

from algorithm007-class02.

cl-k avatar cl-k commented on July 24, 2024

三次反转这个思路好棒,整体的思路都很清晰

from algorithm007-class02.

xuguangyi avatar xuguangyi commented on July 24, 2024

思路清晰,整理到位👍

from algorithm007-class02.

wsgs0705 avatar wsgs0705 commented on July 24, 2024

很好很详细,学习了

from algorithm007-class02.

FrookeBZHW avatar FrookeBZHW commented on July 24, 2024

思路写的很清晰,学到了

from algorithm007-class02.

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.