Documentation ¶ Index ¶ func Arbitrage(rates [][]float64) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Arbitrage ¶ func Arbitrage(rates [][]float64) bool Arbitrage calculates how much money is possibly made using arbitrage. Assuming no transactional costs. Uses Bellman-Ford Shortest Path which runs in O(N^3) time and O(N^2) space due to the transformed rates table. Types ¶ This section is empty. Source Files ¶ View all Source files problem.go Click to show internal directories. Click to hide internal directories.