Ok so i just finished Lecture 1 of Lesson 0 , all is simple enough brehs , but can someone explain this in another format? Its a simple algorithm to explain how to count people in a room
Now i know this is basic algebra but every time i tried to follow the county i was wrong , i kept being off by 1 or 2
@
Kodie
also for those wondering Lesson 0 is two 1 hour lectures + assignments
I also finished Lesson 0 yesterday and doing some problem sets today.
From what I understood :
The setting is N = 0, so it's the first value of N
- First step, you take the 1st value, so it's N = 0 + 1 = 1. After the first step, N = 1. And 1 is N's 2nd value.
- Second step, you take the 2nd value, so it's N = 1 + 1 = 2 and so on.
EDIT : For the second algorithm with N = N + 2, it's also the same. N is set at 0
- First step (ie, first pair) : N = N + 2 = 0 + 2 = 2 ; N = 2
- Second step (ie, second pair) : N = N +2 = 2 + 2 = 4 ; N = 4 and so on...
I don't know if I'm clear, but it's clear to me
also is it easier to learn to code using a windows machine or a MAC? i have access to both, i noticed a lot of the people in the lecture including the professor are using macbooks
If you're on windows, just download notepad++.