Skip to content

Instantly share code, notes, and snippets.

View DavidJS01's full-sized avatar
🦝
Learning and improving!

David Shipman DavidJS01

🦝
Learning and improving!
View GitHub Profile
@DavidJS01
DavidJS01 / 2sumII.py
Last active August 6, 2024 08:16
Two Sum II Intuition
"""
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
!!! Understanding The Problem !!!
In Two Sum II, we are told that the array is sorted. Whenever a
coding question includes restraints or conditions, you should ask
yourself what the impact of that condition (the array being sorted) is.
!!! Picking Your Approach From Your Toolbox !!!