We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hi. Thanks. There may be a way to get rid of 1/2 the table entries by doing what you suggested. That won't speed up the runtime, but it will save on space. The space complexity will still be O(1), but it will use half as much space.
Two Characters
You are viewing a single comment's thread. Return to all comments →
Hi. Thanks. There may be a way to get rid of 1/2 the table entries by doing what you suggested. That won't speed up the runtime, but it will save on space. The space complexity will still be O(1), but it will use half as much space.
HackerRank solutions.