Amazon Interview Question | Floyd's Cycle Detection Algorithm |Detect and Remove Loop in Linked List

  Рет қаралды 13,853

Logic First Tamil

Logic First Tamil

Күн бұрын

Пікірлер: 80
@Moses_Karthikeyan
@Moses_Karthikeyan 3 жыл бұрын
Indha channel enakku show pannadhuku God ku thank pandren..
@HOWTO-sf6sy
@HOWTO-sf6sy 3 жыл бұрын
Sister don't stop ur teaching if it is not taken now by students, it will definitely taken by students in future. Don't lose hope
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
Sure. Thanks for the motivation. pls share with ur friends.
@ksanjay665
@ksanjay665 Жыл бұрын
That's true.
@randykishore5527
@randykishore5527 2 жыл бұрын
Proper explanation with designs and code. Kudos to you. Please create more videos addressing DSA interview questions. Videos on this DSA subject are quite rare in Tamil. Please make more videos.
@toxicgaming294
@toxicgaming294 10 ай бұрын
sis don't stop the algorithm playlist, kindly continue to carry on posting
@elumalairamalingam9974
@elumalairamalingam9974 8 ай бұрын
I saw some of your algorithm videos,such a great explanation.. there are 100 tutorials explaining what the code does. Very few people explain how to arrive the solution. Thank you so much. Keep solving many algorithms that would help many students to think to code.
@arulprakasan1697
@arulprakasan1697 4 ай бұрын
Wow !! Much talented !! nicely explaining the things !! Unique way of teaching !! Best Video !! people must subscribe this kind of great channels !!!
@meenavinoth4082
@meenavinoth4082 2 жыл бұрын
Wonderful work ..... thanks a lot definitely u will reach 1000 million subscribers......pls continue ur teaching work
@AjayKumar-ls8oi
@AjayKumar-ls8oi 3 жыл бұрын
Nice to see you on screen🤗
@RakeshKumar-en1uq
@RakeshKumar-en1uq 3 жыл бұрын
Mam.... really Ur teaching is awesome
@stormsniper3076
@stormsniper3076 3 жыл бұрын
Time ponathe teriyala. interesting question Thank you
@bharathi80205
@bharathi80205 8 ай бұрын
Hi, the way of teaching is very nice. I have 10 years of experienced in IT industry. Can I still learn DSA to get placed in product based companies?
@vijayb6774
@vijayb6774 10 ай бұрын
Understood well mam , Thankyou
@rajinishankar1425
@rajinishankar1425 9 ай бұрын
Akka reference veriable pathi sollunga?
@ESEC-NiranjanaJ
@ESEC-NiranjanaJ Жыл бұрын
Sister pls upload more videos about dsa concept whichever are important questions for freshers
@kabiland2043
@kabiland2043 2 жыл бұрын
Akkaa please intha dsa series ah continue panunga semma helpful ahh irukuu
@trenducts123
@trenducts123 29 күн бұрын
J FOR FAST POINTER SHOULD BE J =A/2 + I(C/2) + B/2 RIGHT? CAUSE IT WAS ALSO JUMPING THE CYCLE BY 2 STEPS ONLY RIGHT?
@Krishna_Gokul
@Krishna_Gokul Жыл бұрын
Thank you sis..need more videos on this!!
@pleasebemine1792
@pleasebemine1792 Жыл бұрын
Akka could you please make a video on other important algorithms like greedy and kadane's algorithm
@Sujith_sundar
@Sujith_sundar 9 ай бұрын
akka you are just awsome, can you teach more algorithms like this
@dheebanm9158
@dheebanm9158 2 жыл бұрын
Good Jop Mam, Excellent Teaching, Please Teach LeetCode Interview Problems
@kousikraj4597
@kousikraj4597 2 жыл бұрын
In gfg I tried to solve this problem(remove the loop). They are multiple test cases, in one of them, they gave circular linked list. so after detecting the cycle we cant assign prev = fast(it wont enter into that statement). so we have to assign prev = slow inside the first while loop. void removeLoop(Node* head) { Node *fast = head, *slow = head, *prev; while(fast!=NULL && fast->next!=NULL){ prev = slow; //line added(for circular linked list)// fast = fast->next->next; slow = slow->next; if(slow == fast){ slow = head; while(slow!=fast){ prev = fast; slow = slow->next; fast = fast->next; } prev->next = NULL; } } }
@LogicFirstTamil
@LogicFirstTamil 2 жыл бұрын
Good catch! Thanks Koushik.
@karthickboopathy2113
@karthickboopathy2113 2 жыл бұрын
Good Explanation Sister, Thank You
@ManojKumar-gc2xp
@ManojKumar-gc2xp 2 жыл бұрын
Amazing explanation
@PraveenKumar-ij1ri
@PraveenKumar-ij1ri 26 күн бұрын
super explanation, akka 🏅
@kousikraj4597
@kousikraj4597 3 жыл бұрын
the best explanation! what abt making vdos on this type of qns (algorithm based qns like floyds, kadane's) as because usually this type of approach won't strike a lot.. those explanations will be useful
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
will definitely add. Will first complete basics like sorting , trees and graphs.
@kousikraj4597
@kousikraj4597 3 жыл бұрын
@@LogicFirstTamil waiting for dsa interview preparation videos🤩
@kousikraj4597
@kousikraj4597 3 жыл бұрын
@@LogicFirstTamil Few of my friends and juniors ask me a good channel to study java/cpp.. I recommended this channel...
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
@@kousikraj4597 Thank you bro..
@mjj3tube
@mjj3tube 3 жыл бұрын
Mam , can you help me with the program mentioned below , I am not sure on how to solve it . “This is new” => Arrange it in increasing length order of words. i.e “is new This”
@tamilbharathi563
@tamilbharathi563 3 жыл бұрын
mam please continue DSA c++ playlist ASAP!
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
Sure. Will do. But if you start learning now, you have so many problems to solve already as assignments. Please dont wait for me to complete the entire playlist. Its like an ocean. I can keep adding forever. Start now itself and work on leetcode questions until the topics covered.
@dineshkumar8893
@dineshkumar8893 3 жыл бұрын
Best explanation akka
@vijayn7822
@vijayn7822 Жыл бұрын
Neriya podunga mam
@cmuthukrishnan2237
@cmuthukrishnan2237 2 жыл бұрын
Which software used in writing in desktop
@gowrishankark1083
@gowrishankark1083 2 жыл бұрын
Mam solve many programs in dsa
@Wonder7studioS
@Wonder7studioS 2 жыл бұрын
sister design patterns ku video podunga.
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
Nice algorithm, but interview ku same question kepangala?, like ithey maari innoru question iruntha nammaku antha algorithm theriyala na what to do? more questions solve panna namaley algorithm develop panra alavuku vanthuruvoma?
@LogicFirstTamil
@LogicFirstTamil 2 жыл бұрын
There are 1000 of questions in websites like leetcode. First learn DSA properly and then practice lot of questions. you will be able to solve.
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
@@LogicFirstTamil ok sister, it's great help. Learning effectively from your videos.
@krishcena7651
@krishcena7651 3 жыл бұрын
Mam ennaku oru doubt na programing ku fresher I am mechanical engineering student ipo na java unga 12 hour video pathu study panrae na ithula full aa thelivaga evalo days mam agum oru average aa
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
It totally depends on how much time u spend and how quickly you grasp. After watching it completely practice a lot for atleast 3 to 4 weeks and then move on to advanced concepts or DSA.
@krishcena7651
@krishcena7651 3 жыл бұрын
@@LogicFirstTamil ok mam😊
@ManojKumar-kl4zk
@ManojKumar-kl4zk 3 жыл бұрын
Sister stack and polynomial adt video poduga sister
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
After covering basics I will add.
@keerthanap1207
@keerthanap1207 2 жыл бұрын
How to use array sister?
@sampathb2920
@sampathb2920 2 жыл бұрын
super nice explanation
@RakeshKumar-en1uq
@RakeshKumar-en1uq 3 жыл бұрын
But pls try to give class about some technology mam
@Aj-tt9ki
@Aj-tt9ki 2 жыл бұрын
Very useful tq akka
@SathishKumar-rr1nq
@SathishKumar-rr1nq 3 жыл бұрын
Super mam
@susmithsurendran703
@susmithsurendran703 6 ай бұрын
How it's come 2jC ?? 2J = a + 2jC + b
@vs-lb3lk
@vs-lb3lk 3 жыл бұрын
Unacadamy will hire you soon 🔜
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
i dont want to be part of such academies that share knowledge only wen money is paid.
@ajithak9485
@ajithak9485 3 жыл бұрын
Mam neenga yenga work pandringa
@parthibanv.p5562
@parthibanv.p5562 3 жыл бұрын
Appo ithu live Illaya. Naa live nu nenachu paathuttu irukken
@AjayKumar-ls8oi
@AjayKumar-ls8oi 3 жыл бұрын
😂same feeling... Live miss pannitomonu nenachite... Do live stream if you can mam😁
@AntroJude
@AntroJude 3 ай бұрын
super.......
@user-vq6yi7se2r
@user-vq6yi7se2r 2 жыл бұрын
Excellent!
@Sk-ot2gl
@Sk-ot2gl 3 жыл бұрын
Please 🥺 put a video or tell me what are the things to do in first year of college cse students 💥
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
I thought of adding the video after completing decent amt of DSA videos. Pick a language -cpp/java/python. Learn thoroughly. Make a mini project. Then you should decide your stream and tech stack. Keep learning a lot - you can learn freely from youtube itself. Learn DSA. Solve a lot of questions in leetcode.
@Sk-ot2gl
@Sk-ot2gl 3 жыл бұрын
@@LogicFirstTamil thanks mam 😊💥
@Humanity__5644
@Humanity__5644 3 жыл бұрын
Mam pls update ( java)selenium training
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
i dont know abt selenium. sorry.
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
we have head and we have to parse till head is equal to that node and if it happens then cycle happens, Displaying elements of circular linked list is approach. Start node will be the first node. To remove the cycle, we need to assign last node's next to null
@LogicFirstTamil
@LogicFirstTamil 2 жыл бұрын
you are mentioning about circular linked list. The cycle can happen anywhere within the list, not necessarily last->head. This video is about detecting such cycles or loops. Here, you might not know which are all the nodes that are part of cycle. The scenario you have mentioned is of course very simple to handle.
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
@@LogicFirstTamil If nodes inbetween point to first node then it's loop la sister then circular linked list thaana? may be i'm confused, let me see the question clearly
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
ok sister understood, inbetween cycle na like 1 2 3 4 5 nodes na 5 points to 3, so now cycle is formed ok
@ANONYMOUS-xg7mj
@ANONYMOUS-xg7mj 2 жыл бұрын
thank you
@HOWTO-sf6sy
@HOWTO-sf6sy 3 жыл бұрын
Sister are you in LinkedIn? If yes please share the LinkedIn profile link sister we can connect.
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
m not active in linkedin
@sidharth.r.k1203
@sidharth.r.k1203 3 жыл бұрын
How can I code c++ in my android device?.
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
It is difficult to code without laptop. You can try online compilers like onlinegdb.
@sidharth.r.k1203
@sidharth.r.k1203 3 жыл бұрын
@@LogicFirstTamil thx for your help 👍.
@sidharth.r.k1203
@sidharth.r.k1203 3 жыл бұрын
@@LogicFirstTamil I have pc but its is 2 gb ram and its take lot of time to complier..
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
@@sidharth.r.k1203 try online compilers then
@LogicFirstTamil
@LogicFirstTamil 3 жыл бұрын
it works for small prgms but not projects
@rajasurya5217
@rajasurya5217 3 жыл бұрын
mam you look beautiful can i know your name plsss 😀
L14. Detect a loop or cycle in LinkedList | With proof and Intuition
20:26
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 123 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 155 МЛН
Remove Loop from Linked List | C++ | Java | Python
15:58
Ayushi Sharma
Рет қаралды 9 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН