Skip to content

Repository files navigation

Python Challenges

Challenge 1: Minimum Moves to Equalize Boxes

Description: Given an array of boxes with different numbers of bricks, determine the minimum number of moves needed to equalize the number of bricks in each box.

File: challenge1.py

Challenge 2: Maximum Pair Sum with Equal Digit Sums

Description: Given an array of numbers, find the maximum pair sum where the digits of each number add up to the same sum.

File: challenge2.py

Challenge 3: Generating a String with Equal Occurrences of Letters

Description: Generate a string of length N with as many different lowercase letters as possible, where each letter occurs an equal number of times.

File: challenge3.py

How to Run

Run each Python file to see the output of the respective challenge.

Challenge 1

python3 challenge1.py

Challenge 2

python3 challenge2.py

Challenge 3

python3 challenge3.py

(c) 2024 Brian Kipkirui

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages