Category: code
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: “aba” Output: True Example 2: Input: …
A string S represents a list of words. Each letter in the word has 1 or more options. If there is one option, the letter is represented as is. …
We know the binary conversion, which is base two. The algorithm to convert to binary for a decimal integer, is to divide by two and concatenate the remainder in …
We known that in Javascript, we can use the toString(16) to convert an integer to its hexadecimal representation. That works even for float numbrs, for example, (0.5).toString(16) "0.8" (1.5).toString(16) …
For a web developer, it is very important to know how to design a web page’s size. So, given a specific rectangular web page’s area, your job by now …