This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
// this is for standard android release APK, the one we can upload to Play Store and Airwatch | |
debuggable false | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
signingConfig signingConfigs.release | |
} | |
debug { | |
// This is for generating an Unsigned APK for Intune and also compile APK on device |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
val k = 3 | |
// k smallest element | |
// by default a PriorityQueue makes a min heap | |
val priorityQueue: PriorityQueue<Int> = PriorityQueue<Int>() | |
priorityQueue.add(20) |
OlderNewer