4 ms·
They could use naive solution for like len(query)<12, and then implement the asymptotically good solution for other situations.
by noogler67 7y ago
They could use naive solution for like len(query)<12, and then implement the asymptotically good solution for other situations.