自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (3)
  • 收藏
  • 关注

原创 [contest 111]943. Find the Shortest Superstring

Given an array A of strings, find any smallest string that contains each string in A as a substring. We may assume that no string in A is substring of another string in A. Example 1: Input: [“alex”,“l...

2018-11-20 00:02:00 212

原创 leetcode 108

Unique Email Addresses 用set点忽略,+后面忽略,@之后保存 class Solution { public: int numUniqueEmails(vector<string>& emails) { set<string> res; for(int i=0;i&a

2018-10-30 22:31:39 172

原创 Leetcode107!都107了都

Leetcode107!都107了都 Long Pressed Name class Solution { public: bool isLongPressedName(string name, string typed) { int i=0,j=0; while(i<name.size()){ if(name[i]==ty...

2018-10-24 11:24:57 295

原创 leetcode105

1. string 倒序,非字母位置不变;Solution: two pointer class Solution { public: string reverseOnlyLetters(string S) { int i=0; int j=S.length(); while(i<=j){ if(!isalpha(...

2018-10-09 06:10:10 273

原创 Leetcode: Max Sum of Rectangle No Larger Than K

Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k. Note: The rectangle inside the matrix must have an area >...

2018-09-25 10:23:27 141

原创 Leetcode: Edit Distance 编辑距离

欢迎讨论~ Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitted on a word:   Insert a character Dele...

2018-09-23 09:57:13 160

原创 hihocoder :补提交卡

hiho 枚举

2017-06-12 11:42:33 329

原创 hihocoder 字符消除

C++中#include与#include的区别 1. 消除重字,熟悉string类操作 #include #include using namespace std; string delestr(string s){     string sc;     for(int j=0;j         if(s[j]!=s[j+1]){             if(j

2017-06-06 09:05:04 387

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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