上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

LeetCode 884 Uncommon Words from Two Sentences 解题报告

摘要: 题目要求 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 un 阅读全文
posted @ 2019-02-22 09:53 锋上磬音 阅读(127) 评论(0) 推荐(0) 编辑

LeetCode 766 Toeplitz Matrix 解题报告

摘要: 题目要求 A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if 阅读全文
posted @ 2019-02-21 09:32 锋上磬音 阅读(97) 评论(0) 推荐(0) 编辑

LeetCode 500 Keyboard Row 解题报告

摘要: 题目要求 Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard. Note: 题目分析及思路 给定一组字符串 阅读全文
posted @ 2019-02-20 20:34 锋上磬音 阅读(89) 评论(0) 推荐(0) 编辑

LeetCode 893 Groups of Special-Equivalent Strings 解题报告

摘要: 题目要求 You are given an array A of strings. Two strings S and T are special-equivalent if after any number of moves, S == T. A move consists of choosing 阅读全文
posted @ 2019-02-19 15:11 锋上磬音 阅读(116) 评论(0) 推荐(0) 编辑

LeetCode 872 Leaf-Similar Trees 解题报告

摘要: 题目要求 Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. Two binary trees are c 阅读全文
posted @ 2019-02-17 09:26 锋上磬音 阅读(105) 评论(0) 推荐(0) 编辑

LeetCode 476 Number Complement 解题报告

摘要: 题目要求 Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: 题目分析及思路 题 阅读全文
posted @ 2019-02-16 10:07 锋上磬音 阅读(108) 评论(0) 推荐(0) 编辑

LeetCode 806 Number of Lines To Write String 解题报告

摘要: 题目要求 We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter wo 阅读全文
posted @ 2019-02-15 09:17 锋上磬音 阅读(66) 评论(0) 推荐(0) 编辑

LeetCode 897 Increasing Order Search Tree 解题报告

摘要: 题目要求 Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child 阅读全文
posted @ 2019-02-14 11:31 锋上磬音 阅读(94) 评论(0) 推荐(0) 编辑

LeetCode 821 Shortest Distance to a Character 解题报告

摘要: 题目要求 Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Note: 题目分析 阅读全文
posted @ 2019-02-13 09:43 锋上磬音 阅读(93) 评论(0) 推荐(0) 编辑

LeetCode 557 Reverse Words in a String III 解题报告

摘要: 题目要求 Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word ord 阅读全文
posted @ 2019-02-12 10:25 锋上磬音 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页