An open API service indexing awesome lists of open source software.

https://github.com/jusexton/python-challenges

Programming challenges written in the Python programming language
https://github.com/jusexton/python-challenges

programming-challenges python3

Last synced: 10 months ago
JSON representation

Programming challenges written in the Python programming language

Awesome Lists containing this project

README

          

# Python Programming Challenges

![](https://github.com/jsextonn/python-challenges/workflows/build/badge.svg)

Programming challenges written in the Python programming language.

Visit https://github.com/JSextonn/all-challenges if you're interested in seeing programming challenges completed in
other languages.

## Completed Programming Challenges

- [Code Wars](#code-wars)
- [Leetcode](#leetcode)

### Code Wars

#### Kyu 3

- [Last Digit of Huge Number](https://www.codewars.com/kata/5518a860a73e708c0a000027)
- [Smaller than me II](https://www.codewars.com/kata/56a1c63f3bc6827e13000006)

#### Kyu 4

- [Social Golfer Problem](https://www.codewars.com/kata/556c04c72ee1147ff20000c9)
- [The Observed Pin](https://www.codewars.com/kata/5263c6999e0f40dee200059d)
- [Sum of Intervals](https://www.codewars.com/kata/52b7ed099cdc285c300001cd)
- [Parse Integer Reloaded](https://www.codewars.com/kata/525c7c5ab6aecef16e0001a5)
- [Validate NxN Sudoku](https://www.codewars.com/kata/540afbe2dc9f615d5e000425)
- [Car Mileage Interesting Numbers](https://www.codewars.com/kata/52c4dd683bfd3b434c000292)
- [Bit Counting Segments](https://www.codewars.com/kata/596d34df24a04ee1e3000a25)
- [Structure Comparison](https://www.codewars.com/kata/520446778469526ec0000001)
- [Smallest Possible Sum](https://www.codewars.com/kata/52f677797c461daaf7000740)

#### Kyu 5

- [Chain Adding](https://www.codewars.com/kata/539a0e4d85e3425cb0000a88)
- [Interleaving Arrays](https://www.codewars.com/kata/523d2e964680d1f749000135)
- [First Non Repeating Character](https://www.codewars.com/kata/52bc74d4ac05d0945d00054e)
- [Greed is Good](https://www.codewars.com/kata/5270d0d18625160ada0000e4)
- [Calculating with Functions](https://www.codewars.com/kata/525f3eda17c7cd9f9e000b39)
- [Last Digit of Large Number](https://www.codewars.com/kata/5511b2f550906349a70004e1)
- [Pagination Helper](https://www.codewars.com/kata/515bb423de843ea99400000a)
- [ObjectId](https://www.codewars.com/kata/52fefe6cb0091856db00030e)
- [String Expansion](https://www.codewars.com/kata/5a793fdbfd8c06d07f0000d5)
- [Move Zeros](https://www.codewars.com/kata/52597aa56021e91c93000cb0)
- [Hex to RGB](https://www.codewars.com/kata/5282b48bb70058e4c4000fa7)
- [Contiguous Binary Array](https://www.codewars.com/kata/60aa29e3639df90049ddf73d)

#### Kyu 6

- [Is a Number Prime](https://www.codewars.com/kata/5262119038c0985a5b00029f)
- [Playing with Passphrases](https://www.codewars.com/kata/559536379512a64472000053)
- [Roman Numerals Encoder](https://www.codewars.com/kata/51b62bf6a9c58071c600001b)
- [Roman Numerals Decoder](https://www.codewars.com/kata/51b6249c4612257ac0000005)
- [Build a Pile of Cubes](https://www.codewars.com/kata/5592e3bd57b64d00f3000047)
- [Extract Domain Name](https://www.codewars.com/kata/514a024011ea4fb54200004b)
- [What Century](https://www.codewars.com/kata/52fb87703c1351ebd200081f)
- [Triangle Number](https://www.codewars.com/kata/557e8a141ca1f4caa70000a6)
- [Sum Arrays](https://www.codewars.com/kata/59c3e8c9f5d5e40cab000ca6)
- [Frequency Sort](https://www.codewars.com/kata/5a8d2bf60025e9163c0000bc)
- [Backspace](https://www.codewars.com/kata/5727bb0fe81185ae62000ae3)
- [Cut The Rope](https://www.codewars.com/kata/58ad388555bf4c80e800001e)
- [Sum The Parts](https://www.codewars.com/kata/5ce399e0047a45001c853c2b)
- [Remove Parentheses](https://www.codewars.com/kata/5f7c38eb54307c002a2b8cc8)
- [Pyramid Array](https://www.codewars.com/kata/515f51d438015969f7000013)
- [Most Frequent Days](https://www.codewars.com/kata/56eb16655250549e4b0013f4)
- [Message Validator](https://www.codewars.com/kata/5fc7d2d2682ff3000e1a3fbc)
- [Fibonacci](https://www.codewars.com/kata/5239f06d20eeab9deb00049b)
- [Linked List Length and Count](https://www.codewars.com/kata/55beec7dd347078289000021)
- [Pile of Towels](https://www.codewars.com/kata/61044b64704a9e0036162a1f)

#### Kyu 7

- [Simple Sequence Validator](https://www.codewars.com/kata/553f01db29490a69ff000049)
- [Sum of Multiples 3 and 5](https://www.codewars.com/kata/57f36495c0bb25ecf50000e7)
- [Round to Next Multiple of 5](https://www.codewars.com/kata/55d1d6d5955ec6365400006d)
- [Population Growth](https://www.codewars.com/kata/563b662a59afc2b5120000c6)
- [Anagram Detection](https://www.codewars.com/kata/529eef7a9194e0cbc1000255)
- [Consecutive Numbers](https://www.codewars.com/kata/5a3e1319b6486ac96f000049)
- [Simple String Matching](https://www.codewars.com/kata/5bc052f93f43de7054000188)
- [Mirror](https://www.codewars.com/kata/5f55ecd770692e001484af7d)
- [Number Strings](https://www.codewars.com/kata/59dd2c38f703c4ae5e000014)
- [Single Sum](https://www.codewars.com/kata/59f11118a5e129e591000134)
- [Capitalized Sentences](https://www.codewars.com/kata/5bf774a81505a7413400006a)
- [Killer](https://www.codewars.com/kata/5f709c8fb0d88300292a7a9d)
- [Least Largest](https://www.codewars.com/kata/5f8341f6d030dc002a69d7e4)
- [Even and Odd](https://www.codewars.com/kata/583ade15666df5a64e000058)
- [Sorted Numbers](https://www.codewars.com/kata/5174a4c0f2769dd8b1000003)
- [Palindrome Chain Length](https://www.codewars.com/kata/525f039017c7cd0e1a000a26)
- [Character Frequency](https://www.codewars.com/kata/5b358a1e228d316283001892)
- [Shared Bit Counter](https://www.codewars.com/kata/58a5aeb893b79949eb0000f1)
- [Tally](https://www.codewars.com/kata/5630d1747935943168000013)
- [Jaden Casing](https://www.codewars.com/kata/5390bac347d09b7da40006f6)
- [Smaller than me I](https://www.codewars.com/kata/56a1c074f87bc2201200002e)

#### Kyu 8

- [Remove First and Last](https://www.codewars.com/kata/56bc28ad5bdaeb48760009b0)
- [Return Negative](https://www.codewars.com/kata/55685cd7ad70877c23000102)
- [Nth Power](https://www.codewars.com/kata/57d814e4950d8489720008db)
- [Quarter Of](https://www.codewars.com/kata/5ce9c1000bab0b001134f5af)
- [Animal Years](https://www.codewars.com/kata/5a6663e9fd56cb5ab800008b)
- [Reverse Words](https://www.codewars.com/kata/51c8991dee245d7ddf00000e)
- [Need One](https://www.codewars.com/kata/57cc975ed542d3148f00015b)
- [Stringy](https://www.codewars.com/kata/563b74ddd19a3ad462000054)
- [Vowel Count](https://www.codewars.com/kata/54ff3102c1bad923760001f3)

### Leetcode

#### Hard

- [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/)

#### Medium

- [Permutations](https://leetcode.com/problems/permutations/)
- [Minimum Anagram Steps](https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram)
- [Max Level Sum](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree)
- [Majority Element](https://leetcode.com/problems/majority-element-ii/)
- [Minimum Operations](https://leetcode.com/problems/minimum-operations-to-make-array-equal/)
- [Minimum Shop Penalty](https://leetcode.com/problems/minimum-penalty-for-a-shop)
- [Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation/description/)
- [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle)
- [Add Two Numbers](https://leetcode.com/problems/add-two-numbers)
- [Simplify Path](https://leetcode.com/problems/simplify-path)
- [Count Vowel Strings in Ranges](https://leetcode.com/problems/count-vowel-strings-in-ranges)
- [Insert Interval](https://leetcode.com/problems/insert-interval)
- [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list)
- [Number of Ways to Split Array](https://leetcode.com/problems/number-of-ways-to-split-array/)
- [Number of Islands](https://leetcode.com/problems/number-of-islands)
- [Word Subsets](https://leetcode.com/problems/word-subsets)
- [Binary Tree Level order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/)
- [Binary Tree ZigZag Level Order Traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal)
- [Container with Most Water](https://leetcode.com/problems/container-with-most-water)
- [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/)
- [Delete the Middle Node of Linked List](https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list)
- [Increasing Tripley Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence)
- [String Compression](https://leetcode.com/problems/string-compression)
- [Maximum Number of Vowels in a Substring of Given Length](https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length)
- [Equal Row and Column Pairs](https://leetcode.com/problems/equal-row-and-column-pairs)
- [Removing Stars from a String](https://leetcode.com/problems/removing-stars-from-a-string)
- [Nearest Exit from Entrance in Maze](https://leetcode.com/problems/nearest-exit-from-entrance-in-maze)
- [First Completely Painted Row or Column](https://leetcode.com/problems/first-completely-painted-row-or-column)
- [Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list)
- [Count Servers that Communicate](https://leetcode.com/problems/count-servers-that-communicate)
- [Count Sub Islands](https://leetcode.com/problems/count-sub-islands)
- [Count Good Nodes in Binary Tree](https://leetcode.com/problems/count-good-nodes-in-binary-tree)
- [Distinct Colors](https://leetcode.com/problems/find-the-number-of-distinct-colors-among-the-balls)
- [Count Total Number of Colored Cells](https://leetcode.com/problems/count-total-number-of-colored-cells)

#### Easy

- [Path Sum](https://leetcode.com/problems/path-sum/)
- [Two Sum](https://leetcode.com/problems/two-sum/)
- [Running Sum](https://leetcode.com/problems/running-sum-of-1d-array)
- [Richest Customer](https://leetcode.com/problems/richest-customer-wealth/)
- [Goal Parser Interpretation](https://leetcode.com/problems/goal-parser-interpretation)
- [Binary Search](https://leetcode.com/problems/search-in-a-binary-search-tree)
- [Matrix Diagonal Sum](https://leetcode.com/problems/matrix-diagonal-sum/)
- [Frequency Sort](https://leetcode.com/problems/sort-array-by-increasing-frequency)
- [Unique Email Addresses](https://leetcode.com/problems/unique-email-addresses)
- [Can be Equal](https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub-arrays)
- [Fizz Buzz](https://leetcode.com/problems/fizz-buzz)
- [Day of the Week](https://leetcode.com/problems/day-of-the-wee)
- [Valid Words](https://leetcode.com/problems/number-of-valid-words-in-a-sentence)
- [Sum Values at Indices with k Set Bits](https://leetcode.com/problems/sum-of-values-at-indices-with-k-set-bits/)
- [Set Mismatch](https://leetcode.com/problems/set-mismatch)
- [Good Array](https://leetcode.com/problems/check-if-array-is-good/)
- [Dominant Index](https://leetcode.com/problems/largest-number-at-least-twice-of-others)
- [Shortest Completing Word](https://leetcode.com/problems/shortest-completing-word/)
- [Counting Bits](https://leetcode.com/problems/counting-bits)
- [Max Frequency Elements](https://leetcode.com/problems/count-elements-with-maximum-frequency/)
- [Pascal Triangle](https://leetcode.com/problems/pascals-triangle/)
- [Padlindrome Number](https://leetcode.com/problems/palindrome-number/)
- [Plus One](https://leetcode.com/problems/plus-one)
- [Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree)
- [Same Tree](https://leetcode.com/problems/same-tree)
- [Invert Binary Tree](https://leetcode.com/problems/invert-binary-tree)
- [Count Prefix and Suffix Pairs I](https://leetcode.com/problems/count-prefix-and-suffix-pairs-i/)
- [String Matching in Array](https://leetcode.com/problems/string-matching-in-an-array)
- [Minimum Genetic Mutation](https://leetcode.com/problems/minimum-genetic-mutation)
- [Counting Words With a Given Prefix](https://leetcode.com/problems/counting-words-with-a-given-prefix)
- [Convert Sorted Array to Binary Search Tree](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree)
- [Average of Level in Binary Tree](https://leetcode.com/problems/average-of-levels-in-binary-tree)
- [Merge Strings Alternatively](https://leetcode.com/problems/merge-strings-alternately)
- [Move Zeroes](https://leetcode.com/problems/move-zeroesg)
- [Is Subsequence](https://leetcode.com/problems/is-subsequence)
- [Maximum Average SubArray I](https://leetcode.com/problems/maximum-average-subarray-i)
- [Can Place Flowers](https://leetcode.com/problems/can-place-flowers)
- [Highest Altitude](https://leetcode.com/problems/find-the-highest-altitude)
- [Pivot Index](https://leetcode.com/problems/find-pivot-index)
- [Find the Difference of Two Arrays](https://leetcode.com/problems/find-the-difference-of-two-arrays)
- [Unique Number of Occurrences](https://leetcode.com/problems/unique-number-of-occurrences)
- [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree)
- [Leaf Similar Trees](https://leetcode.com/problems/leaf-similar-trees)
- [Inorder Traversal](https://leetcode.com/problems/binary-tree-inorder-traversal)
- [Check if Array is Sorted and Rotated](https://leetcode.com/problems/check-if-array-is-sorted-and-rotated)
- [Is Special Array I](https://leetcode.com/problems/special-array-i/)
- [Almost Equal](https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal)
- [Apply Operations to an Arrayg](https://leetcode.com/problems/apply-operations-to-an-array)