Date: 2024-8-21
- Hash Map
- being used to use Set & Map in JavaScript
- Set: a collection of unique values
- Map: a collection of key-value pairs
- remember use
Math
liberary likeMath.floor()
to get the integer part of a division
Date: 2024-8-23
- 前置++和后置++的区别
- 都会改变变量的值
- nums[j]++ is the same as nums[j] = nums[j] + 1
- first return nums[j] then do nums[j]++
- ++nums[j] is the same as nums[j] = nums[j] + 1 then return nums[j]