Reverse k Nodes of Linked List | Amazon Interview (Part 1) HD
Given a linked list, write a function to reverse every k nodes (where k is an input to the function). You will learn how to solve this problem with iterative and recursive approach. Both Solution will be taking O(n) time. And Iterative method will use constant time where in recursive approach will be using stack of O(n) space complexity. More amazon interview questions: 1. Reverse k Nodes - How to Code (Iterative Method) - https://youtu.be/qGSi6-gmCAg 2. Reverse k Nodes - How to Code (Recursive Method) - https://youtu.be/NJffIC32wls 3. Special Stack With GetMin Function - https://youtu.be/l47-accjWbc 4. Find Kth Smallest/Largest Element In Unsorted Array (Part 1) - https://youtu.be/OAeMYcuhGeY 5. Find Kth Smallest/Largest Element In Unsorted Array (Part 2) - https://youtu.be/99ZYxy6Ps6Q 6. Find Kth Smallest/Largest Element In Unsorted Array (Most Efficient) - https://youtu.be/gfIMshbTWM0 7. Find Pythagorean Triplet In Unsorted Array - https://youtu.be/6hOlACfu8l8 Some amazing books to refer for an interview: 1. Cracking the coding interview - https://amzn.to/2DLun79 2. Coding interview question - https://amzn.to/2GtYT9p 3. Cracking the amazon interview - https://amzn.to/2Guo4Zs 4. Analytical reasoning - https://amzn.to/2T0x53q 5. Data structure and algorithmic puzzles - https://amzn.to/2GGk6NB visit our website - asappjobs.com connect with us: linkedIn page : https://www.linkedin.com/company/asappjobs facebook page : https://www.facebook.com/asappjobs twitter page : https://twitter.com/asappjobs please like, comment and share the video among your friends. and subscribe to this channel. Thanks, AsappJobs Team
Похожие видео
Показать еще