Y
Hacker News
new
|
ask
|
show
|
jobs
by
jameshart
1500 days ago
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.
1 comments
nullc
1500 days 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?
link
Because of self-attention it would grow quadratically for larger inputs, no?