Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like ...
Let s define a function countUniqueChars s that returns the number of unique characters on s , for example if s LEETCODE then L , T , C , O , D are the unique characters since they appear only once i ...
2019-10-01 23:36 0 905 推荐指数:
Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like ...
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all ...
1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure? 这道题让我们判断一个字符串 ...
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 ...
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly ...
Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes ...
You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them ...
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may ...