自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 Leetcode494. Target Sum

Leetcode494. Target Sum题目:You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its n

2017-12-29 14:28:43 144

原创 cloudgo-io

Cloudgo-io设计一个web小应用,展示静态文件服务、js请求支持、模板输出、表单处理、Filter中间件设计等能力。使用示范运行 $go run main.go [negroni] listening on :8080访问home/date 访问静态文件 js和html访问和表单提交,输出 对 /unknown 给出开发中的提示,返回码501 客服端的返回数据[negro

2017-12-20 00:51:54 284

原创 cloudgo-data

xorm体验全功能ORM(几乎)关联(包含一个,包含多个,属于,多对多,多种包含)Callbacks(创建/保存/更新/删除/查找之前/之后)预加载(急加载)事务复合主键SQL Builder自动迁移日志可扩展,编写基于GORM回调的插件每个功能都有测试开发人员友好运行go run main.go 服务跑起来后,进行测试,8000端口运行原版程序,8080运行xorm程序

2017-12-20 00:50:25 247

原创 cloudgo

cloudgo框架使用beego在这里我们使用的是beego框架,以下是获取beego框架的方法 go get -u github.com/astaxie/beego内部函数主要还是用了beego的框架函数来直接实现type MainController struct { beego.Controller //beego控制器}func (this *MainController) Ge

2017-12-20 00:48:55 402

原创 LeetCode28. Implement strStr()

LeetCode28. Implement strStr()题目:Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input: haystack

2017-12-20 00:44:34 142

原创 LeetCode27. Remove Element

LeetCode27. Remove Element题目:Given an array and a value, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must d

2017-12-20 00:40:07 124

原创 sicily1001. 输入输出LL(1)语法分析程序 **

sicily1001. 输入输出LL(1)语法分析程序 **题目:Time Limit: 1sec    Memory Limit:256MBDescription 输入开始符号,非终结符,终结符,产生式,LL(1)分析表输出LL(1)分析表Input 输入开始符号;非终结符个数,非终结符,空格符分隔;终结符个数,终结符,空格符分隔;

2017-12-19 18:13:49 980

原创 sicily1000. 输入输出LL(1)语法分析程序

1000. 输入输出LL(1)语法分析程序题目:Time Limit: 1sec    Memory Limit:256MBDescription 输入开始符号,非终结符,终结符,产生式,LL(1)分析表输出LL(1)分析表G[E]:E →E+T | E-T | TT →T*F | T/F | FF →(E) | DD →x |

2017-12-19 17:41:48 438

原创 LeetCode26. Remove Duplicates from Sorted Array

LeetCode26. Remove Duplicates from Sorted Array题目:Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate

2017-12-15 01:33:54 115

原创 LeetCode21. Merge Two Sorted Lists

LeetCode21. Merge Two Sorted Lists题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:

2017-12-10 18:54:30 110

原创 LeetCode20. Valid Parentheses

LeetCode20. Valid Parentheses题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the corre

2017-12-10 18:50:53 107

原创 LeetCode14. Longest Common Prefix

LeetCode14. Longest Common Prefix题目:Write a function to find the longest common prefix string amongst an array of strings.题目分析:题目很直白,通过循环就可以判断出最大前缀。代码:class Solution {public: s

2017-12-10 18:48:19 118

原创 Leetcode7. Reverse Integer

Leetcode7. Reverse Integer题目:Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:

2017-12-03 22:33:05 114

原创 LeetCode2. Add Two Numbers

LeetCode2. Add Two Numbers题目:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single di

2017-12-03 22:29:48 141

空空如也

空空如也

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

TA关注的人

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