上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

2016年6月17日

300 Longest Increasing Subsequence

摘要: class Solution {public: int lengthOfLIS(vector& nums) { int length=nums.size(); if(length==0){ return 0; } int cont=0; int ... 阅读全文

posted @ 2016-06-17 21:13 胖胖的乓乓 阅读(101) 评论(0) 推荐(0) 编辑

2016年6月16日

全排列

摘要: 全排列的应用很广,比如路径全部输出 以前一直用递归写的全排列,今天发现可以用C++ STL 实现 //递归方法#include#include#includeusing namespace std;char a[10];int n;void fuck(char *b,int k){ if(k... 阅读全文

posted @ 2016-06-16 16:04 胖胖的乓乓 阅读(164) 评论(0) 推荐(0) 编辑

2016年6月3日

Python函数式练习

摘要: def calc_prod(lst): def prod(): def mul_(a,b): return a*b return reduce(mul_,lst) return prodf = calc_prod([1, 2, 3,... 阅读全文

posted @ 2016-06-03 11:15 胖胖的乓乓 阅读(99) 评论(0) 推荐(0) 编辑

2016年6月2日

设计模式07_装饰模式

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ abs... 阅读全文

posted @ 2016-06-02 17:06 胖胖的乓乓 阅读(102) 评论(0) 推荐(0) 编辑

设计模式06_桥接模式

摘要: 设计模式学习笔记_桥接模式 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 桥接_咖啡加糖{ ... 阅读全文

posted @ 2016-06-02 15:47 胖胖的乓乓 阅读(112) 评论(0) 推荐(0) 编辑

设计模式05_抽象工厂模式

摘要: 学习设计模式笔记之_抽象模式 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 抽象__汉堡可乐{ ... 阅读全文

posted @ 2016-06-02 14:58 胖胖的乓乓 阅读(125) 评论(0) 推荐(0) 编辑

2016年6月1日

Python__实现队列

摘要: Python__实现队列 class Queue(): def __init__(qu,size): qu.queue=[]; qu.size=size; qu.head=-1; qu.tail=-1; def Empty(qu... 阅读全文

posted @ 2016-06-01 23:29 胖胖的乓乓 阅读(127) 评论(0) 推荐(0) 编辑

Python 实现栈

摘要: #coding=utf-8class Stack(): def __init__(st,size): st.stack=[]; st.size=size; st.top=-1; def push(st,content): if ... 阅读全文

posted @ 2016-06-01 23:15 胖胖的乓乓 阅读(175) 评论(0) 推荐(0) 编辑

2016年5月3日

数据库笔记

摘要: DDL:数据库模式定义语言,关键字:create DML:数据操纵语言,关键字:Insert、delete、update DCL:数据库控制语言 ,关键字:grant、remove DQL:数据库查询语言,关键字:select mysqldump:备份,还原,按条件导出,导入,导出表 mys... 阅读全文

posted @ 2016-05-03 16:22 胖胖的乓乓 阅读(145) 评论(0) 推荐(0) 编辑

2016年4月25日

将数字转化为拼音(1000内)

摘要: 完美的一道笔试题目 #include#include#include#include#include#includeusing namespace std;char str[10];int main(){ mapQ; Q[0]="ling"; Q[1]="yi"... 阅读全文

posted @ 2016-04-25 22:38 胖胖的乓乓 阅读(385) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

导航