05 2017 档案
摘要:Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: public class Solution { pu
阅读全文
摘要:Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be
阅读全文
摘要:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: public class Sol
阅读全文
摘要:Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng
阅读全文
摘要:Write a function to find the longest common prefix string amongst an array of strings. public class Solution { public String longestCommonPrefix(Strin
阅读全文
摘要:Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: if (s.length() == 0) { r
阅读全文
摘要:You are given a string representing an attendance record for a student. The record only contains the following three characters: A student could be re
阅读全文
只有注册用户登录后才能阅读该文。
浙公网安备 33010602011771号