Getting Started

Install node.js

Install a newer version of node.js. We have tested on node >= 18.

Install a Code Editor

If you don't have a code editor installed, then we recommend starting with Visual Studio Code.

Install Code A Pro

Open a terminal and install the Code A Pro base. Run each command listed below:

mkdir codeapro
cd codeapro
npx codeapro

Install your first Code A Pro challenge

Two Sum is a free challenge that you can try out on the Code A Pro platform.

npm run get twoSum

You can now write your solution by modifying the file in your code editor: ./challenges/algorithms/twoSum/index.ts.

Running the tests for Two Sum

After writing your solution to Two Sum, you can run the unit tests to validate it.

npm run test twoSum