Relative Content

Tag Archive for iosswiftalgorithm

Swift: Complex matching algorithm needed

I have a problem implementing an algorithm to match invoices with transactions. So far the matching works quite well but from the code with the comment:
// Search for a transaction that can cover multiple invoices
it gets a little confusing.
The method does invoice with transactions that do not equal 0 which I don’t understand can anyone help?