Tag: C++ coding exercise
Submit your solution at Leetcode: maximum product of word lengths Given a string array words, find the maximum value of length(word) * length(word) where the two words do not …
xxd is a Linux command utility that dumps the file content in hexadecimal. If you type in xxd -h, then you will have the following help menu. ~$ xxd …
Count the number of prime numbers less than a non-negative number, n. Submit your solution to: https://leetcode.com/problems/count-primes/ Naive Solution The first solution is straightforward, a prime number is a …
Given a non-negative integer number, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + …
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version …