Problem I have written a C function that finds the shortest substring that can be repeated to produce the entire […]
Tag: pattern-matching
State monad and pattern matching on data constructors
Problem I am writing a Settlers of Catan server in Haskell for fun. Currently I am passing around state manually. […]
pattern matching coding challenge
Problem I have implemented a simple pattern matching for the below algorithm in Java with time complexity of O(n)(n is […]