This repo contains a dataset of python programming puzzles which can be used to teach and evaluate an AI's programming proficiency. We hope this datas

microsoft / PythonProgrammingPuzzles

submited by
Style Pass
2021-06-12 09:30:04

This repo contains a dataset of python programming puzzles which can be used to teach and evaluate an AI's programming proficiency. We hope this dataset with grow rapidly, and it is already diverse in terms of problem difficult, domain, and algorithmic tools needed to solve the problems. Please contribute!

Each puzzle takes the form of a python function that takes an answer as an argument. The goal is to find an answer which makes the function return True. This is called satisfying the puzzle, and that is why the puzzles are all named sat.

The answer to the above puzzle is the string "world" because sat("world") returns True. The puzzles range from trivial problems like this, to classic puzzles, to programming competition problems, all the way through open problems in algorithms and mathematics. A slightly harder example is:

A more challenging puzzle that requires dynamic programming is the longest increasing subsequence problem which we can also describe with strings:

Leave a Comment
Related Posts