Tag: Two pointer algorithm
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a list of positive integers nums, return whether there exist integers a, b, and c such that a**2 + …
Given a list of integers nums and an integer target, return the number of triples i < j < k that exist such that nums + nums + nums …
Given a list of integers nums and an integer k, return whether there are four distinct elements in the list that add up to k. Constraints n ≤ 100 …
November 29, 2020
algorithms, data structure, Hash Map / Hash Set, programming languages, Python, python, Recursion, teaching kids programming, Two Pointer, youtube video
Teaching Kids Programming: Videos on Data Structures and Algorithms This is actually a very famous known problem for beginners to into Algorithms & Data Structures. Given a list of …
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Input: “eceba” Output: 3 Explanation: t is …