introduction done

This commit is contained in:
anebz 2019-03-27 16:27:40 +01:00
parent 3e046f61a4
commit 8c92dfb386
1 changed files with 11 additions and 1 deletions

View File

@ -306,6 +306,16 @@ Start with a brute force solution, compare it with BCR, find a middle-point algo
If you've reached BCR and have O(1) additional space, you can't optimize big O time or space. If you've reached BCR and have O(1) additional space, you can't optimize big O time or space.
### 1.2.3. What good coding looks like
* correct
* efficient, time and space
* simple/short
* readable, comments when necessary
* maintainable, using classes for example
* modular, separate isolated chunks of code into their own methods
* flexible and robus, generalize for NxN instead of 3x3 in tic-tac-toe.
* error checking, don't assume input data type. validate the input with 'assert' or if statements
## General resources ## General resources