alpersarac / CoinChangerConsole

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coding challange for Websters - Backend Developer position, Alper Sarac

Coin Changer for 15 Cents

This program demonstrates how to make change for 15 cents using 25, 10, 5, and 1 cent banknotes. It employs a recursive approach to backtracking to efficiently solve subproblems.

Time Complexity

  • Worst Case: When the target amount is not equal to the first banknote in the array, the time complexity is O(N^2).

  • Best Case: When the target amount is equal to the first banknote in the array, the time complexity is O(1).

Complexity Graphic

image

Usage

To use this program, simply clone the repository and run it in your preferred development environment.

git clone https://github.com/alpersarac/CoinChangerConsole.git
cd CoinChangerConsole

About


Languages

Language:C# 100.0%