Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year. Example 1: Input: date = “2019-01-09” Output: 9 Explanation: Given …
Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + …
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s …
On a broken calculator that has a number showing on its display, we can perform two operations: Double: Multiply the number on the display by 2, or; Decrement: Subtract …
The zip function in Python 3 takes two parameters, and generate an iterator that contains tuples. Each tuple takes a value from each input – which can be tuples …
You are driving a vehicle that has capacity empty seats initially available for passengers. The vehicle only drives east (ie. it cannot turn around and drive west.) Given a …