Author: ACMer
Given a date, return the corresponding day of the week for that date. The input is given as three integers representing the day, month and year respectively. Return the …
Given a string S, return the number of substrings that have only one distinct letter. Example 1: Input: S = “aaaba” Output: 8 Explanation: The substrings with one distinct …
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 …
Suddenly, you run npm run lint and it shows quite a lot of linebreak-style errors. Your Visual Studio Code suddenly does not show you the lint errors as well. …
Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. The left …