how to implement a queue using kotlin code example
Example: kotlin queue
import java.util.LinkedList
fun main() {
val queueA = LinkedList<Int>()
queueA.add(1)
queueA.add(2)
print(queueA.poll())
}
import java.util.LinkedList
fun main() {
val queueA = LinkedList<Int>()
queueA.add(1)
queueA.add(2)
print(queueA.poll())
}