LeetCode 340. Longest Substring with At Most K Distinct Characters(java)

Given a string, find the length of the longest substring T that contains at most k distinct characters.For example, Given s = “eceba” and k = 2,T is ...

2018-02-12 11:49:48

阅读数:82

评论数:0

LeetCode 76. Minimum Window Substring(java)

Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example, S = "AD...

2018-02-12 11:41:53

阅读数:33

评论数:0

LeetCode 299. Bulls and Cows(java)

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each tim...

2018-02-05 10:47:47

阅读数:12

评论数:0

LeetCode 383. Ransom Note(java)

Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ran...

2018-02-04 09:46:32

阅读数:31

评论数:0

LeetCode 242. Valid Anagram(java)

Given two strings s and t, write a function to determine if t is an anagram of s.For example, s = "anagram", t = "nagaram", retur...

2018-02-04 09:36:02

阅读数:25

评论数:0

LeetCode 621. Task Scheduler(java)

Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks coul...

2018-02-04 09:22:54

阅读数:139

评论数:0

LeetCode 205. Isomorphic Strings(java)

Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrence...

2018-02-03 14:12:03

阅读数:31

评论数:0

LeetCode 681. Next Closest Time(java)

Given a time represented in the format “HH:MM”, form the next closest time by reusing the current digits. There is no limit on how many times a digit...

2018-01-17 09:55:20

阅读数:1162

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭