Tag: Two Pointer
Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middle node. Example …
Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a list of integers nums and an integer target, return the sum of the largest pair of numbers in …
Teaching Kids Programming: Videos on Data Structures and Algorithms A few days ago, we learned to solve the four sum problem using the Bruteforce Algorithm or Depth First Search …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an array of numbers and a target, find out if there is any three numbers that sum up to …