I need to know the time and space complexity for these I have searched all over but nothing seems to give me a good explainable answer