Closed Fabrizv closed 8 months ago
fixed issue #118
ChatGPT suggests removing some variable assignments and using enumerate() to get the next element’s index. It also tells me that I can improve the time complexity from O(n^2) to O(n) by using a set to store the elements seen so far.
https://chat.openai.com/share/94276865-3f66-4fe0-acce-ec9fb2d211c7
fixed issue #118
ChatGPT suggests removing some variable assignments and using enumerate() to get the next element’s index. It also tells me that I can improve the time complexity from O(n^2) to O(n) by using a set to store the elements seen so far.
https://chat.openai.com/share/94276865-3f66-4fe0-acce-ec9fb2d211c7