# Brute Force

Apply the brute force approach to solve TSP.

## We'll cover the following

**Brute force** in coding is a method of problem-solving that involves systematically trying every possible combination of inputs until the correct solution is found. It’s often used in cryptography and password cracking, where the goal is to guess a password or key by trying every possible combination of characters. We’ll use it to solve TSP. It’s not the most efficient solution, but it’s easy to understand and, therefore, a good start.

How many stores should we dare take? Let’s be cautious and start with five stores.

Get hands-on with 1200+ tech skills courses.