Data Structures and Algorithms in Python | Arrays and Strings
In this series and in the next few weeks, I will show you Data Structures and Algorithms in Python by some classic interview solutions. Please take a pen, whiteboard, and your laptop. Let’s start learning!
Cheat sheet to Arrays and Strings. And some heads up for you.
Creating a Matrix in Python without numpy
|
|
Unittest Heads Up
‘in-place’ function
When doing unittest for ‘in-place’ function, remember to deepcopy the test set for looping tests, i.e.
|
|
or
|
|
or
|
|
See example
- Data-Structures-and-Algorithms-in-Python/Rotate Matrix.py at main · chienhsiang-hung/Data-Structures-and-Algorithms-in-Python (github.com)
- Data-Structures-and-Algorithms-in-Python/Zero Matrix.py at main · chienhsiang-hung/Data-Structures-and-Algorithms-in-Python (github.com)
Test your script: Hsiang | PyScript Hello World (chienhsiang-hung.github.io)
Contact me: Hung, Chien-Hsiang (chienhsiang-hung.github.io)