mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-09-13 05:42:12 +00:00
Fix code indentation - tabs to spaces.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
Recursion
|
Recursion
|
||||||
----------
|
----------
|
||||||
Recursion - process of function calling itself
|
Recursion - process of function calling itself
|
||||||
directly or indirectly.
|
directly or indirectly.
|
||||||
@@ -103,7 +103,7 @@ Going right = 1
|
|||||||
Basically, for each element, choose = 1, skip = 0
|
Basically, for each element, choose = 1, skip = 0
|
||||||
|
|
||||||
So, generate numbers from 0 to $2^n-1$ and look at the bits of the numbers. Each subset is formed using each number.
|
So, generate numbers from 0 to $2^n-1$ and look at the bits of the numbers. Each subset is formed using each number.
|
||||||
```python
|
```
|
||||||
For A = [1 2 3]
|
For A = [1 2 3]
|
||||||
|
|
||||||
000 []
|
000 []
|
||||||
|
Reference in New Issue
Block a user