码迷,mamicode.com
首页 >  
搜索关键字:first firstordefault    ( 14152个结果
FreeMarker内建函数
FreeMarker还提供了一些内建函数来转换输出,可以在任何变量后紧跟?,?后紧跟内建函数,就可以通过内建函数来轮换输出变量.下面是常用的内建的字符串函数: html:对字符串进行HTML编码 cap_first:使字符串第一个字母大写 lower_case:将字符串转换成小写 upper_cas...
分类:其他好文   时间:2015-01-12 17:22:44    阅读次数:215
[C++]LeetCode: 89 Same Tree
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. Ans...
分类:编程语言   时间:2015-01-12 16:44:08    阅读次数:216
[C++]LeetCode: 90 Path Sum
题目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree a...
分类:编程语言   时间:2015-01-12 16:40:36    阅读次数:221
a simple GC
先看这篇文章 http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/ 一个很小的GC,如何实现的呢?看一下源代码 #include #include #define STACK_MAX 256 typedef enum { OBJ_INT, OBJ_PAIR } Obj...
分类:其他好文   时间:2015-01-12 14:42:04    阅读次数:152
EF控制台常用命令
打开Nuget 程序包管理控制台输入:Enable-Migrations 回车如果正确的话 则显示已为项目 xxx启用 Code First 迁移。我在这里说下 几种有可能出现的错误:1.No context type was found in the assembly xxx在当前项目中 没有找到...
分类:其他好文   时间:2015-01-12 11:22:21    阅读次数:165
eclipse maven插件安装教程
曾经安装过几次Maven,都出现了不同的错误,下面是关于 Maven的Eclipse插件m2eclipse的安装指导 The goal of the m2ec project is to provide a first-class Apache Maven support in the Eclipse IDE, making it easier to edit Maven's po...
分类:系统相关   时间:2015-01-12 11:02:29    阅读次数:275
LeetCode--Implement strStr()
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Update (2014-11-02): The signature of the function had been updat...
分类:其他好文   时间:2015-01-12 09:22:13    阅读次数:143
后缀数组
追随蔡大神的脚步,开始后缀数组的学习。//时间不够不定时不定期完善一、后缀数组的定义 模版1(远古写法)var s:ansistring; n,tot:longint; c,x,y,rank,sa:array[0..1000]of longint;procedure first;var i:...
分类:编程语言   时间:2015-01-11 23:00:41    阅读次数:299
Scanner类 (读取命令行输入的数字)
1 //Fig. 2.7: Addition2.java ,命令行版加法 【JAVA大学基础教程_第六版 第43页】 2 3 package first; 4 5 import java.util.Scanner; //program uses class Scanner 6 7 publ...
分类:其他好文   时间:2015-01-11 17:43:24    阅读次数:205
【数据结构】数组操作(HighArrayApp.java)
1 // java 数据结构和算法第二版 拉佛 著 2 // 数组的操作 3 4 package first; 5 6 class HighArray { 7 private long[] a; 8 private int nElems; 9 10 public...
分类:移动开发   时间:2015-01-11 14:40:27    阅读次数:372
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!