AledaLee
码龄10年
  • 386,698
    被访问
  • 369
    原创
  • 1,016,063
    排名
  • 92
    粉丝
  • 0
    铁粉
关注
提问 私信

个人简介:个人博客已经迁移到了https://sites.google.com/site/lishuo02wiki/,主要是一些技术的分享,有需要的可以访问。

  • 加入CSDN时间: 2012-07-03
博客简介:

李硕

博客描述:
C/C++编程
查看详细资料
个人成就
  • 获得29次点赞
  • 内容获得39次评论
  • 获得71次收藏
创作历程
  • 32篇
    2014年
  • 232篇
    2013年
  • 116篇
    2012年
成就勋章
TA的专栏
  • 贪心
    10篇
  • STL
    16篇
  • 语言入门
    36篇
  • 搜索
    14篇
  • 数据结构
    10篇
  • 动态规划
    20篇
  • 大数问题
    2篇
  • 计算几何
    3篇
  • 数学概念与方法
    34篇
  • 二分匹配
    4篇
  • 树状数组
    5篇
  • 线段树
    8篇
  • 字典树
    8篇
  • KMP
    7篇
  • 二分查找
    5篇
  • 最短路
    8篇
  • 最小生成树
    8篇
  • 水题
    11篇
  • 并查集
    4篇
  • 排序
    7篇
  • nyist
    11篇
  • 模拟
    4篇
  • 小作品
    7篇
  • 算法入门经典
    43篇
  • 暴力解题
    12篇
  • 回溯法
    2篇
  • 背包
    3篇
  • 高精度
    1篇
  • java
    5篇
  • 优先队列
    4篇
  • 矩阵二分快速幂
    6篇
  • 素数
    1篇
  • Lucas定理解决大的组合数取模
    5篇
  • SQL数据库
    3篇
  • BFS
    1篇
  • hash
    2篇
  • 《算法竞赛-训练指南》
    66篇
  • 数论
    10篇
  • HUT_ACM
  • 模版
    19篇
  • 游戏开发心得及笔记
    4篇
  • Java Web学习笔记
    20篇
  • Linux
    2篇
  • Design Patterns
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

源文件注释格式定制

@Aleda 2014-09-02 14:21 字数 4277 阅读 0源文件定制Linux-C/C++我也有技术恐惧症,所以自己认识一项艺术性的技术,就要去学会它。这固然是优点,但伴随的缺点是从不能很好的坚持。希望现在在真正的工作了,可以养成学习一个东西就要坚持的好习惯,这个markdown上手可能还是有点麻烦的,不过我举得只要上手了就
原创
发布博客 2014.09.02 ·
1016 阅读 ·
1 点赞 ·
0 评论

解题报告

#!/bin/bash 2 3 #function: crawl the webpage, and get urls 4 #data: 2015/5/19 5 #author: Aleda 6 7 #$1 is the website 8 9 function curlLinks() 10 { 11 for ((i=0; i<63; i++
原创
发布博客 2014.05.20 ·
1070 阅读 ·
0 点赞 ·
0 评论

百度实习生面试经历(offer'已拿)

看了别人那么多面试经历,如果自己不写的
原创
发布博客 2014.05.06 ·
7790 阅读 ·
3 点赞 ·
4 评论

Bitmap操作

#include #include #include using namespace std;const int BYTESIZE = 8;void SetBit(char* p, int position){ for (int i = 0; i < position / BYTESIZE; i++) { p++; } *p = *
原创
发布博客 2014.04.26 ·
800 阅读 ·
0 点赞 ·
0 评论

线索二叉树

#include #include #include using namespace std;struct BinThrNode{ int data;//结点的数据 BinThrNode* lChild;//左孩子 BinThrNode* rChild;//右孩子 bool lTag; //有左孩子是1 bool rTag; //有右孩子是1
原创
发布博客 2014.04.26 ·
798 阅读 ·
0 点赞 ·
0 评论

并查集

#include using namespace std;void Init(){ for (int i = 0; i <= N; i++) { set[i] = i; }}int Find(int x){ return set[x] = (set[x] == x ? x : Find(set[x]));}int main()
原创
发布博客 2014.04.24 ·
750 阅读 ·
0 点赞 ·
0 评论

非递归遍历便利二叉树

#include using namespace std;struct TreeNode{ TreeNode* lChild; TreeNode* rChild; int m_iData; TreeNode() { lChild = NULL; rChild = NULL; m_iData = 0;
原创
发布博客 2014.04.24 ·
742 阅读 ·
1 点赞 ·
0 评论

哈希探查的三种方法

#include #include #include #include using namespace std;const int MAXSIZE = 100;int hash[MAXSIZE];int MOD = MAXSIZE - 1; //小于MAXSIZE的一个质数vector hashTable[MAXSIZE];/* 线性探查int LinearProbi
原创
发布博客 2014.04.24 ·
1300 阅读 ·
0 点赞 ·
0 评论

快速幂

#include #include using namespace std;long long QuickPow(int a, int n, int mod){ int ans = 1; while (n) { if (n & 1) { ans = (long long)ans * a % mod;
原创
发布博客 2014.04.24 ·
623 阅读 ·
0 点赞 ·
0 评论

函数传参

#include #include #include #include using namespace std;int Max(int a, int b){ return a > b ? a : b;}int GetMax(int a[][6], int N, int M){ int iMax = 0; for (int i = 0; i < N;
原创
发布博客 2014.04.22 ·
726 阅读 ·
0 点赞 ·
0 评论

双栈模拟队列

#include #include using namespace std;templateclass CQueue{public: T& push(T&); T& front(); void pop();private: stack m_stack1; stack m_stack2;};templateT& CQueue:: pu
原创
发布博客 2014.04.19 ·
879 阅读 ·
0 点赞 ·
0 评论

根据前序,中序求后续

#include #include #include #include #include using namespace std;void postOrder(char *pre, char *in, int len) { if (len <= 0) { return ; } int i; for (i = 0; i < len; i++) { if (in
原创
发布博客 2014.04.19 ·
1204 阅读 ·
0 点赞 ·
1 评论

根据前序,中序构建出BinaryTree

#include #include #include using namespace std;struct TreeNode{ int m_iValue; TreeNode* m_pLeft; TreeNode* m_pRight; TreeNode() { m_pLeft = NULL; m_pRight =
原创
发布博客 2014.04.19 ·
878 阅读 ·
0 点赞 ·
0 评论

洋气的SPFA

#include #include #include #include using namespace std;const int MAXN = 100 + 11;const int INF = 0x3FFFFFFF;class Edge{public: Edge(); ~Edge(); int getBegin(); void setBeg
原创
发布博客 2014.04.16 ·
711 阅读 ·
0 点赞 ·
0 评论

虚函数的实现机制

#include using namespace std;class CBase1 { private: int a; int b; void sayBye() { cout << "Bye, CBase1!" << endl; } public: CBase1() { cout << "Hello CBase1!" << endl;
原创
发布博客 2014.04.16 ·
758 阅读 ·
0 点赞 ·
0 评论

C++一些宏定义

#include #define PI 3.1415926 //#define #define MIN(X, Y) (X) () #define Conn(X, Y) X##Y //简单的把x和y连接起来,但不处理。即Conn(a, 2)--->a2, 编译的时候,如果没有a2就会报错。//#define TOCHAR(X) #@X 不可以这样使用#define TOSTRING(X
原创
发布博客 2014.04.16 ·
768 阅读 ·
0 点赞 ·
0 评论

WinSock客户端和服务端(select模型)

客户端:服务端:
原创
发布博客 2014.04.15 ·
1108 阅读 ·
0 点赞 ·
0 评论

CreateThread()和_biginthreadex()

HANDLE WINAPI CreateThread( _In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes, _In_ SIZE_T dwStackSize, _In_ LPTHREAD_START_ROUTINE lpStartAddress, _In_opt_ LPVOID lpParameter,
原创
发布博客 2014.04.15 ·
946 阅读 ·
0 点赞 ·
0 评论

堆排序

#include #include #include #include using namespace std;void print(int *a, int n){ for (int i = 1; i <= n; i++) { printf("%d ", a[i]); } cout << endl;}void heapify(int *a, int x, int
原创
发布博客 2014.04.14 ·
746 阅读 ·
0 点赞 ·
0 评论

合并排序

#include #include #include #include const int INF = 0x7fffffff;using namespace std;void merge(int *a, int l, int mid, int r) { int L[100]; int R[100]; int cnt = 0; for (int i = l; i <=
原创
发布博客 2014.04.14 ·
677 阅读 ·
0 点赞 ·
0 评论
加载更多