4Sum - Leetcode 18 - Two Pointers (Python)

preview_player
Показать описание


Please check my playlists for free DSA problem solutions:

My Favorite Courses:

Data Structures & Algorithms:

Python:

Web Dev / Full Stack:

Cloud Development:

Game Development:

SQL & Data Science:

Machine Learning & AI:
Рекомендации по теме
Комментарии
Автор

Isn't it kinda misleading to call it a 2 pointer approach when we essentially use n (here 4) pointers (lo and hi are basically pointers too right?)

Thebeast_QwQ
Автор

If it is a k sum problem, does it mean we need to resort to recursive solution (until we end up with 2 sum problem)?

JoeTan-nqfq
welcome to shbcf.ru