摘要:
题目要求 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 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 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: 题目分析及思路 给定一组字符串 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: 题目分析及思路 题 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 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 阅读全文
摘要:
题目要求 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: 题目分析 阅读全文
摘要:
题目要求 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 阅读全文