上一页 1 ··· 7 8 9 10 11

LeetCode 944 Delete Columns to Make Sorted 解题报告

摘要: 题目要求 We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each strin 阅读全文
posted @ 2019-01-07 10:09 锋上磬音 阅读(116) 评论(0) 推荐(0) 编辑

LeetCode 832 Flipping an Image 解题报告

摘要: 题目要求 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 me 阅读全文
posted @ 2019-01-06 21:41 锋上磬音 阅读(99) 评论(0) 推荐(0) 编辑

LeetCode 905 Sort Array By Parity 解题报告

摘要: 题目要求 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 m 阅读全文
posted @ 2019-01-05 09:30 锋上磬音 阅读(98) 评论(0) 推荐(0) 编辑

LeetCode 804 Unique Morse Code Words 解题报告

摘要: 题目要求 International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b 阅读全文
posted @ 2019-01-03 09:38 锋上磬音 阅读(118) 评论(0) 推荐(0) 编辑

LeetCode 961 N-Repeated Element in Size 2N Array 解题报告

摘要: 题目要求 In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N time 阅读全文
posted @ 2019-01-02 09:36 锋上磬音 阅读(83) 评论(0) 推荐(0) 编辑

LeetCode 709 To Lower Case 解题报告

摘要: 题目要求 Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. 题目分析及思路 题目要求返回一个字符串的小写形式。可以直接使用lower( 阅读全文
posted @ 2019-01-01 19:41 锋上磬音 阅读(120) 评论(0) 推荐(0) 编辑

LeetCode 965 Univalued Binary Tree 解题报告

摘要: 题目要求 A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. 题目分析及思路 题目要求当输入的 阅读全文
posted @ 2018-12-31 18:39 锋上磬音 阅读(240) 评论(0) 推荐(0) 编辑

LeetCode 929 Unique Email Addresses 解题报告

摘要: 题目要求 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, and 阅读全文
posted @ 2018-12-30 10:08 锋上磬音 阅读(179) 评论(0) 推荐(0) 编辑

LeetCode 771 Jewels and Stones 解题报告

摘要: 题目要求 You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of 阅读全文
posted @ 2018-12-29 10:18 锋上磬音 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11