Given n nodes labeled from 0 to n-1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make ...
分类:
其他好文 时间:
2018-10-01 14:10:37
阅读次数:
145
题目 Given two binary strings, return their sum (also a binary string). The input strings are both non empty and contains only characters 1 or 0. Exampl ...
分类:
其他好文 时间:
2018-10-01 11:52:46
阅读次数:
104
问题描述 ORA-01843: not a valid month oracle数据库插入出现无效的月份 ...
分类:
其他好文 时间:
2018-09-30 16:44:10
阅读次数:
457
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N ...
分类:
编程语言 时间:
2018-09-29 23:58:12
阅读次数:
339
给定一个只包含 ‘(‘ 和 ‘)’ 的字符串,找出最长的包含有效括号的子串的长度。 ...
分类:
其他好文 时间:
2018-09-29 17:38:05
阅读次数:
122
3. Longest Substring Repeating Character Difficulty:Medium The link: https://leetcode.com/problems/longest substring without repeating characters/ Des ...
分类:
其他好文 时间:
2018-09-29 00:46:23
阅读次数:
139
1 //用list比较快 2 class Solution { 3 public String frequencySort(String s) { 4 if(s.length() == 0 || s.length() == 1) return s; 5 HashMap map = new HashM... ...
分类:
其他好文 时间:
2018-09-28 11:10:03
阅读次数:
116
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2018-09-28 11:04:11
阅读次数:
163
给定一个字符串,找出不含有重复字符的最长子串的长度。 示例: 给定 “abcabcbb” ,没有重复字符的最长子串是 “abc” ,那么长度就是3。给定 “bbbbb” ,最长的子串就是 “b” ,长度是1。给定 “pwwkew” ,最长子串是 “wke” ,长度是3。请注意答案必须是一个子串,”p ...
分类:
其他好文 时间:
2018-09-28 11:00:47
阅读次数:
134
题目描述 Given a string s consists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string. If the last ...
分类:
其他好文 时间:
2018-09-28 01:42:58
阅读次数:
106