o(n^2) def quad_find(s, n): slen = len(s) for i in range(slen): for j in range(slen-1): if s[i] + s[j+1] == n: return (i, j+1) return None In the provided Python function, 's' represents a list and '...
Deeper
I'm currently a student at the National University of Singapore, majoring in System Analysis. Although I'm relatively new to the world of computer science and English writing, I'm eager to share my personal insights and understanding of computer science through this blog. Feedback, corrections, and interactions are highly welcomed and appreciated!
Markdown supported · ⌘↵ to post
No responses yet.