/3DVectorFlattening

A Simple Algorithm to Return the 1D Vector Respective Index of a 3D Matrix

Primary LanguageC++MIT LicenseMIT

3D Vector Flattening

Takes the index of a 3D vector element and returns the respective index of the flattened vector.

Running the application

To run the cpp executable, run the following command:

g++ main.cpp -o main.exe
./main.exe

To run the Javascript file, run the following command:

node main.js