Python geometry problems
Points, lines, shapes and areas in Python, on problems with tests that check your answer.
Beginner
Intermediate
Advanced
- 378. Squares on the CorkboardPins on a corkboard: how many squares can you make from them?135 XP28 min
- 383. Do Two Walls Meet?Two straight walls on a floor plan: do they meet anywhere?140 XP28 min
- 410. Inside the FenceIs the sheep inside the fence, outside it, or standing right on it?150 XP30 min
- 425. Rubber Band Around the NailsStretch a rubber band around a board full of nails160 XP35 min
- 427. Area Covered by Sticky NotesSticky notes scattered on a desk: how much of the desk is hidden?165 XP35 min
Expert
- 452. Closest Pair of StarsTwenty thousand stars on a chart: which two sit closest together?230 XP45 min
- 468. Most Landmarks in ViewStand still and turn your head: how many landmarks can you see at once?240 XP50 min
- 641. Drones Too Close TogetherA sky full of drones: how many pairs are flying dangerously close?210 XP40 min
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Errors and exceptions
- File handling
- Modules and random
- Sorting and searching
- Two pointers
- Sliding window
- Stacks and queues
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Python idioms
- Regular expressions
- Codes and ciphers
- Working with data
- Grids and matrices
- Games and puzzles
- Heaps
- Data structures
Or see every challenge, with study plans, today's challenge and duels.