小小程序媛  
得之坦然,失之淡然,顺其自然,争其必然
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页

2015年11月13日

摘要: 序最近需要在Linux下进行一个OpenCL开发的项目,现将开发环境的配置过程记录如下,方便查阅。完整的环境配置需要以下几个部分:安装一个OpenCL实现,基于硬件,选择NVIDIA CUDA SDK (英伟达的显卡OpenCL是被包含在CUDA SDK内的);安装Cmake项目生... 阅读全文
posted @ 2015-11-13 11:22 Coding菌 阅读(2190) 评论(0) 推荐(0) 编辑

2015年11月12日

摘要: 题目There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank a... 阅读全文
posted @ 2015-11-12 14:00 Coding菌 阅读(118) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1-... 阅读全文
posted @ 2015-11-12 13:30 Coding菌 阅读(116) 评论(0) 推荐(0) 编辑
 
摘要: 序最近需要在Linux下做一个unix网络编程项目,选择了Ubuntu 最新版本15.04 : 开发环境:Qt 5 数据库: MySQL安装Qt 和 MySQL简要介绍一下软件的安装!安装Qt命令sudo apt-get install qtcreator安装MySQL,我是采用的... 阅读全文
posted @ 2015-11-12 11:24 Coding菌 阅读(347) 评论(0) 推荐(0) 编辑

2015年11月11日

摘要: 题目Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, 3, 2]... 阅读全文
posted @ 2015-11-11 15:32 Coding菌 阅读(266) 评论(0) 推荐(0) 编辑

2015年11月9日

摘要: 题目Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes’ ... 阅读全文
posted @ 2015-11-09 14:40 Coding菌 阅读(188) 评论(0) 推荐(0) 编辑
 
摘要: 题目Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.分析求解一个二维平面上所有点中,位于同一直线上的最多点数。首先想到的算法就是首先... 阅读全文
posted @ 2015-11-09 13:24 Coding菌 阅读(158) 评论(0) 推荐(0) 编辑

2015年11月5日

摘要: 题目Description:Count the number of prime numbers less than a non-negative number, n.Credits: Special thanks to @mithmatt for adding this probl... 阅读全文
posted @ 2015-11-05 15:24 Coding菌 阅读(178) 评论(0) 推荐(0) 编辑

2015年11月4日

摘要: 序最近做一个项目需要用到OpenCL,由于之前没有接触过,所以在环境配置第一关就遇到了一些问题,查阅很多资料才配置完成,现在记录如下,希望给一些童鞋一些帮助。整个步骤也很简单:了解系统配置,选择合适的安装包安装CUDASDK更新驱动VS2013下新建C++项目配置环境: 项目右键属... 阅读全文
posted @ 2015-11-04 10:29 Coding菌 阅读(542) 评论(0) 推荐(0) 编辑

2015年11月3日

摘要: 题目Reverse a singly linked list.click to show more hints.Hint: A linked list can be reversed either iteratively or recursively. Could you impl... 阅读全文
posted @ 2015-11-03 13:42 Coding菌 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 34 下一页