Is our brain really that intelligent?

Is our brain really that intelligent?

Can puzzles like (2 eggs,100 floor) , Calculation of prime numbers using "sieve of Eratosthenes",Calculating middle of linked list with Floyd cycle algorithm strike any one's mind instantly.Let's consider Floyd algorithm for determining middle of linked list.At the max,my brain can think of this solution-:

a)Count the total number of elements

b)Take the floor value of the count calculated in point a) above

c)Traverse the linked list till number calculated in point b) above

d)After traversing till the mid point print the value of linked list's data.

Time complexity is O(n),Space complexity is O(1)

No matter how hard I think,can Floyd algorithm really strike my mind.Well I don't think so.For all those who don't know about Floyd cycle algo let me brief you about it.

**Use two pointers.Move one pointer at twice the speed of second,When the first pointer reaches the end of list,the second pointer should be in the middle.

Do let me know if such thinking, requires some special efforts or simply practicing and mugging as much as you can!!

Vishakha Garg

Technical head at Carvemylife

8 年

I think,a lot of practicing can develop a human brain to think in an advanced way.

回复

要查看或添加评论,请登录

Arti Grover的更多文章

  • A salute to Modi's stride

    A salute to Modi's stride

    A poem written by me ::: A new topic has shaken us It seems like somebody is with us After Jio Sim and surgical…

    2 条评论
  • Inspiration

    Inspiration

    Often in life, we are greatly inspired by someone. We make them our role model And try to follow their good things.

    4 条评论
  • Try Try until you succeed!!

    Try Try until you succeed!!

    That streak, that fire to achieve something even when no one is watching you and there’s no deadline I saw him working…

    3 条评论
  • Business is all about Trust!

    Business is all about Trust!

    Yippie, again I got a Taxi For Sure(TFS) message on my phone.It said flat Rs 50 off on all TFS rides till 11th October.

    4 条评论
  • The Logo Game

    The Logo Game

    Do you know the more you challenge your mind to think something,the more sharper it becomes? Let’s challenge our brains…

社区洞察

其他会员也浏览了