3 ms·
how is n bounded in the 2nd algorithm?
by waynesonfire 4y ago
how is n bounded in the 2nd algorithm?
- xigoi 4y agoIf you assume that it's unbounded, then either the algorithms aren't solving the same problem or the first one is wrong, so it doesn't make sense to compare them.