题目描述 Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat" ...
分类:
其他好文 时间:
2017-06-29 17:24:21
阅读次数:
134
https://leetcode.com/problems/valid-perfect-square/#/solutions ...
分类:
其他好文 时间:
2017-06-29 11:15:00
阅读次数:
143
一、题目 1、描述 2、题意 求满足括号闭合规则的最大子串长度 二、解答 1、思路: 刚开始想到的是前面的判断这个字符串是否满足闭合规则的方法,即建一个Stack,当为'(' 时候,')' 入栈,当为 ')' 时候,判断栈顶是否为 ‘)’, 这种方法未解决 ()(() 这种情况。看到网上大神的方法, ...
分类:
其他好文 时间:
2017-06-26 18:04:47
阅读次数:
154
leetcode 逆波兰式求解 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are+,-,*,/. Each operand may be an integer ...
分类:
其他好文 时间:
2017-06-25 23:52:10
阅读次数:
156
centos7开机无法进入图形界面,出现sda assuming drive cache write through、no valid rapl domains found in package之类信息。 这个问题是我在VMware里面操作出现的,原因是我在使用虚拟机和实体机之间文件共享功能时,ce ...
分类:
系统相关 时间:
2017-06-25 18:40:19
阅读次数:
9628
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Given a string containing just ...
分类:
其他好文 时间:
2017-06-24 10:07:06
阅读次数:
171
Problem statement Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return t ...
分类:
其他好文 时间:
2017-06-23 10:16:31
阅读次数:
99
题目链接:https://leetcode.com/problems/valid-parentheses/ Given a string containing just the characters '(', ')','{', '}', '[' and ']', determine if the i ...
分类:
其他好文 时间:
2017-06-22 10:03:06
阅读次数:
115
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135", return ["2 ...
分类:
其他好文 时间:
2017-06-21 00:53:45
阅读次数:
244
Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak ...
分类:
其他好文 时间:
2017-06-20 14:57:01
阅读次数:
136