=====================
This repository contains a simple console application that helps a group of people settle their debts with the minimum number of transactions. The application uses a graph-based approach to calculate the minimum cashflow between people.
- Calculates the minimum cashflow between people based on their transactions
- Displays the transactions required to settle the debts
- A C++ compiler to build and run the application
Save the provided source code in a file named 'main.cpp'
Use a C++ compiler to build the application. For example, with g++:
g++ -o cashflow main.cpp
Run the compiled application:
./cashflow
Follow the prompts to enter the number of people, their names, and the transactions between them
The application will display the final transactions required to settle the debts
The code is structured as follows:
Calculates the net amount each person has to pay or receive
Recursive function to calculate the minimum cashflow
Main function to calculate the minimum cashflow and display the transactions
The entry point of the application, handles user input and output
This project is licensed under the MIT License - see the LICENSE.md file for details.