The world of business is moving so fast that it is almost impossible to do business without a phone service. In fact, not having a telephone number on your …
We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n, write a …
Given an array A of 0s and 1s, consider N_i: the i-th subarray from A to A interpreted as a binary number (from most-significant-bit to least-significant-bit.) Return a list …
Have you ever needed a quick tool to lookup multiple hosts (Java based on the InetAddress class. The following Java code has been uploaded to github: https://github.com/DoctorLai/DNSLookup import java.net.InetAddress; …
Given a two-dimensional matrix of integers matrix, determine whether it’s a Toeplitz matrix. A Toeplitz is one where every diagonal descending from left to right has the same value. …
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncommon if …