
jygh
A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1:
Title: A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1: terminology question (p 447)
In the Exercise solutions for Chapter 12 there’s the following text for exercise 3:
To accomplish memoization here, we need to make a key that takes into account both the number of rows as well as the number of columns. To this end, we can make our key a simple array of [rows, columns]:
It looks to me like the key isn’t an array/Python list, but rather a tuple. The distinction may not be valuable in the context of the discussion–and it may be a distraction which you are deliberately choosing to avoid here since tuples don’t appear to be mentioned in the text–but I thought I would mention it.
First Post!

jaywengrow
You are correct, and I will likely clarify. Thank you!
Popular Pragmatic Bookshelf topics










Other popular topics










Latest in A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /java
- /haskell
- /onivim
- /svelte
- /typescript
- /crystal
- /c-plus-plus
- /kotlin
- /tailwind
- /gleam
- /react
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /centos
- /php
- /deepseek
- /html
- /zig
- /scala
- /sublime-text
- /textmate
- /debian
- /nixos
- /lisp
- /agda
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /spring
- /manjaro
- /django
- /diversity
- /lua
- /nodejs
- /c
- /slackware
- /julia
- /markdown