Skip to content

Solve algorithmic Python challenges to sharpen the tools.

License

Notifications You must be signed in to change notification settings

lukasmartinelli/sharpen

Repository files navigation

Sharpening my programming skills

mbtoolbox

This is a collection of small (< 1h) Python challenges to keep your Python skills sharp.

Challenges

The challenges are explained in detail in the comments of the corresponding Python files.

Arrays

Math

Strings

Bit Manipulation

Two Pointers

Binary Search

Stack

Linked Lists

Backtracking / Recursion

Hashing

Maps

Trees

Graphs

  • level_order.py: Traverse tree in level order (BFS)
  • black_shapes.py: Given a board of black and white fields find the number of black connected shapes

Greedy

  • trading_stock.py: Figure out max profit given the stock prices of yesterday.
  • bulbs.py: Given wrong wired light bulbs find the min number of switches to press to turn on all the bulbs.
  • mice_holes.py: Given M mice and N holes on a straight line find min number of moves to assign all mice to the holes.

About

Solve algorithmic Python challenges to sharpen the tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published