Category: c / 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 …
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 …
Given an array A of integers, we must modify the array in the following way: we choose an i and replace A with -A, and we repeat this process …
Given a year Y and a month M, return how many days there are in that month. Example 1: Input: Y = 1992, M = 7 Output: 31 Example …