Skip to content

Instantly share code, notes, and snippets.

View redoacs's full-sized avatar

Edgar David Arenas Díaz redoacs

View GitHub Profile
import scala.io.Source
import java.io.PrintWriter
import scala.collection.mutable.Queue
import scala.collection.mutable.BitSet
import scala.collection.mutable.Map
object findmin extends App {
def rfm(j: Int, n: Int, k: Int, m: Queue[Int], mm: Map[Int,Int], csm:BitSet): Int = {
if (j==n) m.last