Let's solve this problem idiomatic way via Kotlin!
🧑🏻🏫 Problem Link :
https://leetcode.com/problems/permuta...
🌲 Heap's algorithm :
https://en.wikipedia.org/wiki/Heap's_...
🪞😃🪞 Recursion (in computer science) :
https://en.wikipedia.org/wiki/Recursi...
🗺️ Kotlin Local Functions :
https://kotlinlang.org/docs/functions...
🔁 Kotlin Repeat :
https://kotlinlang.org/api/core/kotli...
⏰ Time Stamp
00:00 Analysis
00:36 Heap's algorithm
01:20 Algorithm in action
05:45 Implement the algorithm
09:17 Submit (1st try)
10:32 Submit
#algorithm #leetcode #kotlin #competitiveprogramming #permutation #permutations #divideandconquer #recursion #array #arrays #set #heap #codinginterview #btyttechlibrary
▬▬▬▬▬▬▬
🎵Music provided by 샛별
🎵A Trip to the sky - • ✨샛별 - A Trip to the sky✨(Royalty Free Music)
🎵Music provided by 브금대통령
🎵Track : 수양놀음 - • [브금대통령] (대한민국/국악/Korean) 수양놀음/Suyang's Pla...
▬▬▬▬▬▬▬
コメント