Let's solve this problem idiomatic way via Kotlin!
🧑🏻🏫 Problem Link :
leetcode.com/problems/permutations-ii/description/
🌲 Heap's algorithm :
en.wikipedia.org/wiki/Heap's_algorithm
🪞😃🪞 Recursion (in computer science) :
en.wikipedia.org/wiki/Recursion#In_computer_scienc…
🗺️ Kotlin Local Functions :
kotlinlang.org/docs/functions.html#local-functions
🔁 Kotlin Repeat :
kotlinlang.org/api/core/kotlin-stdlib/kotlin/repea…
⏰ 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...
コメント