equal
deleted
inserted
replaced
6 // regex: (a*)*b |
6 // regex: (a*)*b |
7 // strings: aa... |
7 // strings: aa... |
8 // |
8 // |
9 // call with: |
9 // call with: |
10 // |
10 // |
11 // $> node catastrophic.py 20 |
11 // $> node catastrophic.js 20 |
12 // |
12 // |
13 // call with timing as: |
13 // call with timing as: |
14 // |
14 // |
15 // $> time node catastrophic.py 25 |
15 // $> time node catastrophic.js 25 |
16 |
16 |
17 |
17 |
18 const args = process.argv[2] |
18 const args = process.argv[2] |
19 |
19 |
20 var str = 'a'.repeat(args); |
20 var str = 'a'.repeat(args); |