- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AINeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Collections, iterators and threads
Hash maps, iterators, closures and modules, then threads, channels and shared state.
- Lesson 2 challenges Hash Maps Store and look up values by key with HashMap.
- Lesson 2 challenges Word Frequency Counter Count how often each word appears with a HashMap.
- Lesson 2 challenges Iterators Process collections with filter, map, sum and other iterator methods.
- Lesson 1 challenge Closures Write anonymous functions that capture variables around them.
- Lesson 1 challenge Modules and Visibility Organize code into modules and choose what is public with pub.
- Lesson 1 challenge Threads Run code in parallel with thread::spawn and collect the results with join.
- Lesson 1 challenge Channels Send messages from one thread to another with mpsc::channel.
- Lesson 1 challenge Shared State with Arc and Mutex Let several threads change one value safely.