码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
leetcode--Linked List Cycle--判断链表是否有环
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 这个题目用快慢指针来做,重点在于代码怎么实现的简洁方便理解。 这里用快指针来判断链表是不是有NULL,没有NULL那再继续走,看是否能与慢指针遇上...
分类:其他好文   时间:2014-10-01 10:16:10    阅读次数:309
leetcode--two sum
Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of th...
分类:其他好文   时间:2014-09-30 23:33:10    阅读次数:319
Remove Duplicates from Sorted Array
Follow up the "remove duplicates",what if duplicates are allowed at most twice?思路一:使用变量numlength记录数组中相同数字出现不超过两次所得到的数组长度;code:class Solution {public: ...
分类:其他好文   时间:2014-09-30 23:01:00    阅读次数:171
CSS实现DIV三角形
本文内容收集来自网络#triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom:...
分类:Web程序   时间:2014-09-30 18:51:59    阅读次数:162
Two Sum
题目描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:其他好文   时间:2014-09-30 00:24:31    阅读次数:208
Populating Next Right Pointers in Each Node II LeetCode
Populating Next Right Pointers in Each Node II  Total Accepted: 18934 Total Submissions: 62031My Submissions Follow up for problem "Populating Next Right Pointers in Each Node". What if t...
分类:其他好文   时间:2014-09-29 23:45:01    阅读次数:218
[r]Setting up Django and your web server with uWSGI and nginx
This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so tha...
分类:Web程序   时间:2014-09-29 15:43:31    阅读次数:241
Directx9.0 学习教程4 - 坐标系以及变换知识小记
坐标系   左图是左手坐标系    右图是右手坐标系   Direct3d用的是左手坐标系     顶点和法向     光栅化 变换 1世界变换 2观察变换 D3DXMATRIX out; D3DXVECTOR3 eye(2,3,3); D3DXVECTOR3 at(0,0,0); D3DXVECTOR3 up(0,1,0); D3DXMatrixL...
分类:其他好文   时间:2014-09-29 14:27:50    阅读次数:150
Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looke...
分类:数据库   时间:2014-09-29 00:54:07    阅读次数:693
POJ-1324-Holedox Moving(BFS)
DescriptionDuring winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its l...
分类:其他好文   时间:2014-09-28 19:37:15    阅读次数:519
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!