From 16ed3d024aeebe8cf0214e9748bad0890da6bd10 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Sun, 21 Apr 2024 23:05:40 +0400 Subject: [PATCH] 2 --- .../2. Arrays Data Structure.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 The Last Algorithms Course You'll Need/2. Arrays Data Structure.md diff --git a/The Last Algorithms Course You'll Need/2. Arrays Data Structure.md b/The Last Algorithms Course You'll Need/2. Arrays Data Structure.md new file mode 100644 index 0000000..0cca5ca --- /dev/null +++ b/The Last Algorithms Course You'll Need/2. Arrays Data Structure.md @@ -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