Skip to content

atparkweb/cc_time_complexity_lecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Complexity Analysis in Code

Example code to demonstrate differences between time complexities.

How to use

Install dependencies:

npm install

Start program:

npm start

Counting steps

  1. Initialize a new instance of the Counter class inside a function:
const counter = new Counter();
  1. For each step, call the increment function
counter.inc();
  1. Get the total count by using the total property
const total = counter.total;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published