We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
importControl.Monadvalid::[(Int,Int)]->Boolvalidf=-- code goes here --main=dot<-fmap(read::String->Int)getLineforM[1..t](\_->don<-fmap(read::String->Int)getLinefunc<-forM[1..n](\_->dofmap((\[a,b]->(a,b)).map(read::String->Int).words)getLine::IO(Int,Int))putStrLn$ifvalidfuncthen"YES"else"NO")
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Functions or Not?
You are viewing a single comment's thread. Return to all comments →
Here is a template for haskell.