LeetCode – Strings – Make String Great
Given a string s of lower and upper case English letters. A good string is a string which doesn’t have two adjacent characters s[i] and s[i + 1] where: To make the string good, you can choose two…
Given a string s of lower and upper case English letters. A good string is a string which doesn’t have two adjacent characters s[i] and s[i + 1] where: To make the string good, you can choose two…
Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path…
Given a date string in the form Day Month Year, where: Convert the date string to the format YYYY-MM-DD, where: Example 1: Input: date = "20th Oct 2052" Output: "2052-10-20" Example 2: Input: date…