Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jameshart
3y ago
0 comments
Share
Actually it turns out it's O(n). Which goes to show that constant factors can be more important than you think when looking at raw time complexity big-O.
0 comments
default
newest
oldest
nullc
3y ago
Ehhhh, it's O(n) when the string to be reversed is bounded under its input window.
Because of self-attention it would grow quadratically for larger inputs, no?
j
/
k
navigate · click thread line to collapse