摘要: 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 == 阅读全文
posted @ 2019-04-10 14:59 sxuer 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Title: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Ex 阅读全文
posted @ 2019-04-07 09:35 sxuer 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 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, 阅读全文
posted @ 2019-04-05 10:03 sxuer 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-05 09:54 sxuer 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-04 12:49 sxuer 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-02 16:23 sxuer 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-04-01 19:44 sxuer 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 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 ".-", 阅读全文
posted @ 2019-03-31 10:50 sxuer 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-03-30 21:15 sxuer 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 = [ 阅读全文
posted @ 2019-03-30 21:08 sxuer 阅读(110) 评论(0) 推荐(0) 编辑