摘要:
Title: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 阅读全文
摘要:
Title: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Ex 阅读全文
摘要:
Title: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, 阅读全文
摘要:
Title: Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You 阅读全文
摘要:
Title: There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) a 阅读全文
摘要:
Title: Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length. Return any permutation A of [0, 1, ..., N] such that fo 阅读全文
摘要:
Title: Every email consists of a local name and a domain name, separated by the @ sign. For example, in alice@leetcode.com, alice is the local name, a 阅读全文
摘要:
Title: International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", 阅读全文
摘要:
Title: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally 阅读全文
摘要:
Title: Write a function to delete a node (except the tail) in a singly linked list(单链表), given only access to that node. Given linked list -- head = [ 阅读全文