Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2019-03-25 20:47:13
阅读次数:
178
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list t ...
分类:
其他好文 时间:
2019-02-28 14:50:58
阅读次数:
179
layout: post title: Codeforces Round 253 (Div. 2) author: "luowentaoaa" catalog: true tags: mathjax: true codeforces 模拟栈 贪心 传送门 A. "Anton and Letters" ...
分类:
其他好文 时间:
2019-02-26 13:35:10
阅读次数:
162
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
其他好文 时间:
2019-02-23 19:28:01
阅读次数:
215
题目要求 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 ...
分类:
其他好文 时间:
2019-02-22 10:28:04
阅读次数:
204
Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible, containing distinct letters, each taken ...
分类:
其他好文 时间:
2019-02-11 10:25:28
阅读次数:
210
Given two integers A and B, return any string S such that: S has length A + B and contains exactly A 'a' letters, and exactly B 'b' letters; The subst ...
分类:
其他好文 时间:
2019-02-10 09:28:27
阅读次数:
132
题目: 给定一个只包含小写字母的有序数组letters 和一个目标字母 target,寻找有序数组里面比目标字母大的最小字母。 数组里字母的顺序是循环的。举个例子,如果目标字母target = 'z' 并且有序数组为 letters = ['a', 'b'],则答案返回 'a'。 示例: 注: 解题 ...
分类:
其他好文 时间:
2019-02-07 20:28:27
阅读次数:
137
题目如下: Given the root of a binary tree, each node has a value from 0 to 25representing the letters 'a' to 'z': a value of 0 represents 'a', a value of ...
分类:
其他好文 时间:
2019-02-06 15:52:32
阅读次数:
192
Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1 rep ...
分类:
其他好文 时间:
2019-02-05 13:13:56
阅读次数:
142