Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
/**
* Definition for s...
分类:
其他好文 时间:
2014-10-12 13:59:18
阅读次数:
182
Remove Duplicates from Sorted List I
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3...
分类:
其他好文 时间:
2014-10-11 16:50:15
阅读次数:
206
Remove Duplicates from Sorted Array I
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for an...
分类:
其他好文 时间:
2014-10-11 16:19:56
阅读次数:
140
网的重要作用可以导入3DMAX等创建的模型,到游戏中;着色器可以实现特定绚丽的效果。它们的实现如下
1. 网 Mesh的实现:
#pragma once
//========================================================================
// File: Mesh.h - classes to render meshes in ...
分类:
其他好文 时间:
2014-10-11 00:01:04
阅读次数:
709
有时候我们创建场景的时候,特定的Actor我们想给它一个特定的图标,便于观察。比如这样:
实现起来也很简单,需要编写C++代码:
我们创建一个Actor,叫AMyActor,它包含一个Sprite(精灵),这个精灵负责显示自定义图标:代码如下
#pragma once
#include "GameFramework/Actor.h"
#include "Components/Bil...
分类:
编程语言 时间:
2014-10-10 12:01:34
阅读次数:
354
灯光和材质的实现如下:
1. 灯光
#pragma once
//=========================================================================
// Lights.h - implements a simple light class for the scene graph
//=======================...
分类:
其他好文 时间:
2014-10-10 00:27:53
阅读次数:
301
1.normal fetch ----fetch 1 cache line once2. pre-fetch mode one ---- fetch 3 cache line once3.pre-fetch mode two ----{way1: fetch 3 cache lines once ,...
分类:
其他好文 时间:
2014-10-09 14:41:14
阅读次数:
196
问题描述:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place
...
分类:
其他好文 时间:
2014-10-09 02:58:47
阅读次数:
175
对于二叉树的创建我是利用先序遍历的序列进行创建能够对于树节点的内容我定义为char型变量 '0'为空,即此处的节点不存在头文件 Tree.h//链式二叉树的头文件#pragma once#include#includeusing namespace std;class BinaryTreeNode{...
分类:
其他好文 时间:
2014-10-09 01:22:27
阅读次数:
360
下载PHPExcel源码:http://phpexcel.codeplex.com/ 只要 PHPExcel_1.8.0_doc\Classes 目录下所有文件即可
<?php
require_once("../db_config.php");
require_once("Classes/PHPExcel.php");
include("Classes/PHPExcel/IOF...
分类:
Web程序 时间:
2014-10-08 12:29:45
阅读次数:
274