- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution: github.com/bterwijn/mem...
#PythonDev #memory_graph #Mutability
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution: github.com/bterwijn/mem...
#PythonDev #memory_graph #Mutability
Hold the green 'Continue' button to Make it Snow:
memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Snow
Hold the green 'Continue' button to Make it Snow:
memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Snow
🔍️ This interactive 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 example explores it's operations with short explanations. 👣 Step through the Python code, see what changes, and experiment with your own modifications: 👉️ memory-graph.com#micropip=num...
#PythonDev #memory_graph #Pandas
🔍️ This interactive 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 example explores it's operations with short explanations. 👣 Step through the Python code, see what changes, and experiment with your own modifications: 👉️ memory-graph.com#micropip=num...
#PythonDev #memory_graph #Pandas
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...)
- More exercises: bsky.app/profile/bter...
#PythonDev #memory_graph #Mutability #Copying
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...)
- More exercises: bsky.app/profile/bter...
#PythonDev #memory_graph #Mutability #Copying
- What’s the difference between '*' and '@'?
- When does slicing create a view, and when a copy?
- How does broadcasting work?
This 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 example walks through all essential NumPy operations: 👉 memory-graph.com#micropip=num...
#PythonDev #memory_graph #NumPy
- What’s the difference between '*' and '@'?
- When does slicing create a view, and when a copy?
- How does broadcasting work?
This 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 example walks through all essential NumPy operations: 👉 memory-graph.com#micropip=num...
#PythonDev #memory_graph #NumPy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #Mutability #LocalVariables
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #Mutability #LocalVariables
Repeatedly clicking (or holding) the green "Continue" button solves each Sudoku puzzle in the Memory Graph Web Debugger: memory-graph.com#codeurl=http...
- easy
- medium, from Gordon Royle’s collection
- hard, "Everest" by Arto Inkala
#PythonDev #memory_graph #Sudoku #SudokuSolver
Repeatedly clicking (or holding) the green "Continue" button solves each Sudoku puzzle in the Memory Graph Web Debugger: memory-graph.com#codeurl=http...
- easy
- medium, from Gordon Royle’s collection
- hard, "Everest" by Arto Inkala
#PythonDev #memory_graph #Sudoku #SudokuSolver
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
- More exercises: bsky.app/profile/bter...
#PythonDev #memory_graph #Mutability
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
- More exercises: bsky.app/profile/bter...
#PythonDev #memory_graph #Mutability
memory-graph.com#codeurl=http...
A binary tree can be traversed in three classic ways:
🔹 𝗣𝗿𝗲𝗼𝗿𝗱𝗲𝗿: current, left, right
🔹 𝗜𝗻𝗼𝗿𝗱𝗲𝗿: left, current, right
🔹 𝗣𝗼𝘀𝘁𝗼𝗿𝗱𝗲𝗿: left, right, current
#Python #memory_graph #Recursion #BinaryTree
memory-graph.com#codeurl=http...
A binary tree can be traversed in three classic ways:
🔹 𝗣𝗿𝗲𝗼𝗿𝗱𝗲𝗿: current, left, right
🔹 𝗜𝗻𝗼𝗿𝗱𝗲𝗿: left, current, right
🔹 𝗣𝗼𝘀𝘁𝗼𝗿𝗱𝗲𝗿: left, right, current
#Python #memory_graph #Recursion #BinaryTree
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
A trie is a tree-shaped data structure that can be implemented elegantly in Python using nested dictionaries (hash tables).
Tries are often used for:
- Autocomplete
- Prefix search
- Sequence matching
#PythonDev #memory_graph #DataStructures #Trie
A trie is a tree-shaped data structure that can be implemented elegantly in Python using nested dictionaries (hash tables).
Tries are often used for:
- Autocomplete
- Prefix search
- Sequence matching
#PythonDev #memory_graph #DataStructures #Trie
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
In this example: memory-graph.com#codeurl=http...
we show a sink reading from different sources, some eager some lazy, using the Iterator Protocol, where 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 shows what's really going on.
#PythonDev #memory_graph #LazyEvaluation #IteratorProtocol
In this example: memory-graph.com#codeurl=http...
we show a sink reading from different sources, some eager some lazy, using the Iterator Protocol, where 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 shows what's really going on.
#PythonDev #memory_graph #LazyEvaluation #IteratorProtocol
🎯 Decorators help: wrap a function, add logic before and after each call.
🔎 We use '@log_call' to log each call with arguments and return value: memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Decorators
🎯 Decorators help: wrap a function, add logic before and after each call.
🔎 We use '@log_call' to log each call with arguments and return value: memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Decorators
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
#PythonDev #memory_graph #ShallowCopy
In this classic beginner-friendly exercise 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualizes what happens step-by-step at execution for easy understanding and debugging.
Run the demo: memory-graph.com#codeurl=http...
#PythonDev #memory_graph
In this classic beginner-friendly exercise 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualizes what happens step-by-step at execution for easy understanding and debugging.
Run the demo: memory-graph.com#codeurl=http...
#PythonDev #memory_graph
Using the Iterator Protocol:
𝑖𝑡𝑒𝑟𝑎𝑡𝑜𝑟 = 𝑖𝑡𝑒𝑟(𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑒𝑟)
𝑤ℎ𝑖𝑙𝑒 𝑇𝑟𝑢𝑒:
..𝑡𝑟𝑦:
....𝑣𝑎𝑙𝑢𝑒 = 𝑛𝑒𝑥𝑡(𝑖𝑡𝑒𝑟𝑎𝑡𝑜𝑟)
....𝑝𝑟𝑖𝑛𝑡(𝑣𝑎𝑙𝑢𝑒)
..𝑒𝑥𝑐𝑒𝑝𝑡 𝑆𝑡𝑜𝑝𝐼𝑡𝑒𝑟𝑎𝑡𝑖𝑜𝑛:
....𝑏𝑟𝑒𝑎𝑘
A Linked_List example: memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Iterator #IteratorProtocol
Using the Iterator Protocol:
𝑖𝑡𝑒𝑟𝑎𝑡𝑜𝑟 = 𝑖𝑡𝑒𝑟(𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑒𝑟)
𝑤ℎ𝑖𝑙𝑒 𝑇𝑟𝑢𝑒:
..𝑡𝑟𝑦:
....𝑣𝑎𝑙𝑢𝑒 = 𝑛𝑒𝑥𝑡(𝑖𝑡𝑒𝑟𝑎𝑡𝑜𝑟)
....𝑝𝑟𝑖𝑛𝑡(𝑣𝑎𝑙𝑢𝑒)
..𝑒𝑥𝑐𝑒𝑝𝑡 𝑆𝑡𝑜𝑝𝐼𝑡𝑒𝑟𝑎𝑡𝑖𝑜𝑛:
....𝑏𝑟𝑒𝑎𝑘
A Linked_List example: memory-graph.com#codeurl=http...
#PythonDev #memory_graph #Iterator #IteratorProtocol
Package memory_graph: memory-graph.com#codeurl=http...
visualizes the state for easy program understanding and debugging.
#PythonDev #memory_graph #PythonTeaching
Package memory_graph: memory-graph.com#codeurl=http...
visualizes the state for easy program understanding and debugging.
#PythonDev #memory_graph #PythonTeaching
that get me +50.000 views and +1000 site visits on LinkedIn and Reddit. Here I didn't get anything except 1 like.
Package memory_graph: memory-graph.com#codeurl=http...
visualizes the state for easy program understanding and debugging.
#PythonDev #memory_graph #PythonTeaching
that get me +50.000 views and +1000 site visits on LinkedIn and Reddit. Here I didn't get anything except 1 like.
VS Code setup: dai.ly/xb2u52e?star...
memory_graph GitHub: github.com/bterwijn/mem...
#PythonDev #memory_graph #DataStructures #BinaryTree
VS Code setup: dai.ly/xb2u52e?star...
memory_graph GitHub: github.com/bterwijn/mem...
#PythonDev #memory_graph #DataStructures #BinaryTree
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: github.com/bterwijn/mem...
to visualize code execution.
#PythonDev #memory_graph #ShallowCopy #DeepCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: github.com/bterwijn/mem...
to visualize code execution.
#PythonDev #memory_graph #ShallowCopy #DeepCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses memory_graph: github.com/bterwijn/mem...
to reveal what’s actually happening.
#PythonDev #memory_graph #Mutability
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses memory_graph: github.com/bterwijn/mem...
to reveal what’s actually happening.
#PythonDev #memory_graph #Mutability