5 ms·"create an array length n of booleans" This could have a space complexity of O(n), not O(1).by cncool 14y ago"create an array length n of booleans" This could have a space complexity of O(n), not O(1).