All Stories published by theburningmonk.com on December 14, 2016

Equilibrium Index problem in F#

A good friend pointed me to a nice coding challenge she encountered — finding the Equilibrium Index of an array in O(n) time.

After a quick discussion we ended up with 2 solutions, and naturally I had to code them up in F#

About
theburningmonk.com
the personal blog for Yan Cui
More information
Tags
Editors