This commit is contained in:
NaiJi ✨ 2024-04-21 23:05:40 +04:00
parent 60fd331394
commit 16ed3d024a
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
array [0][]
a + width * offset
contigious memory
```
int a[3];
[ jakdf ] [ adsfa ] [ vdsfv ]
a[1] = 4;
[ jakdf ] [ 4 ] [ vdsfv ]
```
O(1) operations, do not grow by input, we know all the positions and variables, so we just multiply