Coding Sheet
Programming from zero
Python basics for people who have never written code. Grouped by pattern and tagged by role. Practise each one on LeetCode and tick it off here.
0 / 30 solved
0%
Easy 0/21·Medium 0/9·Hard 0/0
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Print your first status message | Easy | — | Read | — | ||
| Print a server's hostname and IP from variables | Easy | — | Read | — | ||
| Swap the active and standby servers | Easy | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Build a health check URL | Easy | — | Read | — | ||
| Convert disk usage in bytes to GB | Easy | — | Read | — | ||
| Normalize a config value | Easy | — | Read | — | ||
| Split a log line into its parts | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Alert when a service is stopped | Easy | — | Read | — | ||
| Classify CPU usage as OK, warning or critical | Easy | — | Read | — | ||
| Decide if a deploy is allowed | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Print every port from 8000 to 8010 | Easy | — | Read | — | ||
| Count down before a restart | Easy | — | Read | — | ||
| Add up disk usage across servers | Easy | — | Read | — | ||
| Retry a connection until it succeeds | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Get the first and last server in a list | Easy | — | Read | — | ||
| Find the highest response time | Easy | — | Read | — | ||
| Filter a list to only web servers | Easy | — | Read | — | ||
| Remove duplicate IPs while keeping order | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Read values from a config dictionary | Easy | — | Read | — | ||
| Use a default when a config key is missing | Easy | — | Read | — | ||
| Count how many servers are in each region | Medium | — | Read | — | ||
| Group hosts by health status | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Write is_valid_port(n) | Easy | — | Read | — | ||
| Build hostnames with a default environment | Easy | — | Read | — | ||
| Format uptime seconds as days, hours, minutes | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Count the lines in a log file | Easy | — | Read | — | ||
| Write a server inventory file | Easy | — | Read | — | ||
| Extract error lines into a new file | Medium | — | Read | — |
| Status | Problem | Difficulty | Practice | Explanation | Solution | Save |
|---|---|---|---|---|---|---|
| Convert a port from text safely | Easy | — | Read | — | ||
| Handle a missing config file without crashing | Medium | — | Read | — |
Must-do problem (the last-minute revision list). Company tags appear only where a public interview report names that company.