• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
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 阅读(154) 评论(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 阅读(106) 评论(0) 推荐(0)
 
LeetCode()Word Pattern
摘要: 为什么我的算法不对呢,ab 可以检测,但超过两个不同的,就不对了先写在这里,哪天有思路了再看看// LeetCode.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include#include#include#includeusing name... 阅读全文
posted @ 2015-11-24 08:48 yanqi 阅读(154) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3