Category: c / c++
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, …
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 …
Convert a non-negative integer to its English words representation. Given input is guaranteed to be less than 231 – 1. For example, 123 – “One Hundred Twenty Three” 12345 …
Modern IDE-s (Integrated Development Environment) eat memory (32-bit Visual Studio and Delphi 2007/XE8 Eat Memory) and 32-bit only can use up to 4GB (with Large Address Aware) and (3GB …