会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yanqi
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2015年11月24日
LeetCode()Substring with Concatenation of All Words 为什么我的超时呢?找不到原因了!!!
摘要: 超时代码class Solution {public: vector findSubstring(string s, vector& words) { map coll; for(auto i:words) coll[i]++; ...
阅读全文
posted @ 2015-11-24 23:04 yanqi
阅读(148)
评论(0)
推荐(0)
编辑
LeetCode() Valid Anagram 有问题!!!
摘要: 为什么第一个通过,第二个不行呢?class Solution {public: bool isAnagram(string s, string t) { if(s.size() != t.size()) return false; vector...
阅读全文
posted @ 2015-11-24 11:08 yanqi
阅读(103)
评论(0)
推荐(0)
编辑
LeetCode()Word Pattern
摘要: 为什么我的算法不对呢,ab 可以检测,但超过两个不同的,就不对了先写在这里,哪天有思路了再看看// LeetCode.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include#include#include#includeusing name...
阅读全文
posted @ 2015-11-24 08:48 yanqi
阅读(150)
评论(0)
推荐(0)
编辑
公告