In this video, I will go over the solution of the Leetcode problem, "Swap Nodes in Pairs". Lately, I've been studying data structures and algorithms in preparation for FAANG technical interviews. I will do a lot more in this series in the next couple of months, so come join the fam and the journey.
The swap nodes in pairs is the fourth problem of this journey of learning algorithms. There are other ways to solve problems, like iterative, I want to get familiar with because I know they will assist in optimizing the algorithms I write with them.
The programming language of choice is java. I think java is an easy language to understand and to do coding interviews with it.
Chapters:
00:00 Intro
00:34 Read the Prompt
00:40 Example #1
01:04 Example #2
01:12 Example #3
01:32 Logic Talk Through
02:00 Step #1
02:33 Step #2
03:37 Step #3
04:10 Step #4
05:00 Step #5
05:18 Final Step
05:22 Logic Break Down
06:21 Complexity Analysis
07:02 Outtro
// Solution to Duplicate Zeros:
https://github.com/SoftwareJournal/al...
// Resources:
Leetcode Explanation of Recursion: https://leetcode.com/explore/learn/ca...
Big O Notation: https://towardsdatascience.com/the-bi...
Like, Share and Subscribe, Peace!
コメント