A tech enthusiast, DL freak and a lone wolf. You can see my detail from my website: promila.info and you can contact me through email: email@example.com
Thank you so much for your response. Actually, there was a big mistake I did. Both of the space complexity of them is O(1). I’ll update.