Tag: Two Pointer
Given two strings s0 and s1, return the two strings interleaved, starting with s0. If there are leftover characters in a string they should be added to the end. …
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 …
You are given two binary search trees a and b and an integer target. Return whether there’s a number in a and a number in b such that their …
Given a lowercase alphabet string s, partition s into as many pieces as possible such that each letter appears in at most one piece and return the sizes of …
Given a list of integers nums, sort the list in the following way: First number is the maximum Second number is the minimum Third number is the 2nd maximum …