- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 《Leetcode系列》C++实现:3-Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le
2016-09-29 09:26:53 249
原创 《计算机网络自顶向下方法》
802.11MAC协议使用的CSMA/CA,叫做载波侦听多路访问/冲突避免,而802.3以太网协议使用的CSMA/CD(冲突检测)的机制。为什么802.11不能使用CSMA/CD 呢: 1,检测碰撞的能力要求站点具有同时发送和接收的能力,而在802.11适配器上,接受信号的强度远远小于发送信号的强度。 2,适配器会由于隐藏终端问题和衰减问题而无法检测到所有的碰撞。 所以802.11使用碰撞避免
2016-09-28 20:14:36 2888
原创 《Leetcode系列》C++实现:2-add two numbers
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a li
2016-09-28 16:36:00 504
原创 《Leetcode系列》C++实现:1-two sum
最近看了遍C++ primer开始刷leetcode,巩固C++知识,正好复习数据结构和算法。 第一题:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have e
2016-09-27 11:04:29 320
原创 xcode中使用OpenGL
创建command line 工程,保存。 主要是要添加OpenGL.framework和GLUT.framework到工程中。添加方式,单击工程名,找到build phases-Link Binary with libraries即可添加两个framework了。 #include <iostream>#include <OpenGL/gl.h>#include <OpenGL/glu.h
2016-09-24 15:43:21 1061
原创 《C++ Primer》Page400,对容器元素重新排序的算法
程序目的:统计一组儿童故事所使用单词中有多少个由六个或以上字母组成的单词,每个单词只统计一次,不考虑重复次数。要求以长度的大小输出这些单词,对于同样长的单词,以字典顺序输出。#include <iostream>#include <algorithm>#include <vector>using namespace std;void print(vector<string> words){
2016-09-12 10:37:09 304
SMO算法详解
2018-05-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人