Skip to main content
Loading page…
Python Mastery
Chapter 54
Lesson 1 of 4
String & Array Katas
Contents
Notes
Tutor
Concept
Why Katas Beat Tutorial-Watching
Loading activity…
Previous
1 / 10
Continue
Contents
Notes
Discussion
Tutor
28 min
10 activities
0 of 10 done
In this lesson
1
Why Katas Beat Tutorial-Watching
2
Kata 1 — Reverse Words
3
Kata 2 — Is Anagram
4
Kata 3 — Two Sum
5
Kata 4 — Most Frequent Element
6
Kata 5 — Running Totals (Prefix Sum)
7
Kata 6 — Generalised FizzBuzz
8
Kata 7 — Flatten a Nested List
9
Complexity Check
10
Gotcha: str.split() vs str.split(' ')
Objectives
Learner can reverse words in a sentence without reaching for split+reverse+join alone
Learner can implement an anagram check correctly in O(n) time
Learner can solve two-sum with a hash-map in O(n)
Learner can find the most-frequent element using Counter or a manual tally
Learner can compute running totals (prefix sums) over a list
Learner can generalise FizzBuzz to arbitrary rule sets
Learner can flatten a nested list recursively and iteratively
Chapter 54 · Coding Challenges, Katas & Debugging
String & Array Katas
Recursion & DP Challenges
Debugging Missions
Refactoring & Code Review
Previous: Deploying a Python App
Next: Recursion & DP Challenges