DEV Community

Discussion on: 5 Programming Patterns I Like

 
idanarye profile image
Idan Arye

dev.to does it for you with the ^ operator - so O(n^2) becomes O(n2).