//声明函数 @helper GetWeek(int week) {switch (week){ case 0: @:星期天 break; case 1: @:星期一 break; ...
分类:
其他好文 时间:
2015-12-05 11:04:44
阅读次数:
139
public class Solution { private int result = Integer.MIN_VALUE; public int maxPathSum(TreeNode root) { helper(root); return result...
分类:
其他好文 时间:
2015-12-04 07:55:16
阅读次数:
116
21、Merge Two Sorted Lists题目直接上代码:class Solution {public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { ListNode *helper=new ListNode...
分类:
其他好文 时间:
2015-12-03 21:07:47
阅读次数:
155
Color Stops:在使用CSS3渐变属性生成图片的时候,有时候为了打造更丰富的渐变效果除了声明渐变线上的起始点和终止点的色值,还有声明一些中间点的色值,这些点我们就称之为Color Stops。一个色值加上当前点的位置。当我们省略点位置表示的时候Color Stops helper funct...
分类:
其他好文 时间:
2015-12-02 12:21:37
阅读次数:
142
public class Solution { int result = 0; public int countUnivalSubtrees(TreeNode root) { helper(root); return result; } publi...
分类:
其他好文 时间:
2015-11-29 13:28:15
阅读次数:
110
Model:namespace MvcApplication1.Models{ public class Team { public string Preletter { get; set; } public string Name { get; set; }...
分类:
Web程序 时间:
2015-11-29 06:29:27
阅读次数:
158
public class Solution { TreeNode result = new TreeNode(0); public int kthSmallest(TreeNode root, int k) { helper(root, k); return ...
分类:
其他好文 时间:
2015-11-27 17:32:33
阅读次数:
111
类的完整代码:using System;using System.Collections;using System.Xml;namespace Keleyi.Com.XmlDAL{public class XmlHelper{#region 公共变量XmlDocument xmldoc;XmlNod...
分类:
其他好文 时间:
2015-11-25 13:21:00
阅读次数:
152
一般我们想要在 ejs 模板中使用外部函数用于特殊的处理,比如:通常的做法是:使用app.locals来定义:app.locals.ellipsis = function(str, len) { return str;}// 使用使用ejs.filters来定义,详细用法:var ejs = ...
分类:
Web程序 时间:
2015-11-24 00:59:36
阅读次数:
178
问题背景:app在上传图片时,同时传递参数,支持传递多个图片。本文中的环境默认已经配好了服务器的CodeIgniter框架。事实上不使用这个框架也是可以的。一,服务器部分1,在controllers下的helpers新建文件upload_helper.php<?php
/**
* Make multifile array input complaint with CI_Upload.
* Fo...
分类:
移动开发 时间:
2015-11-20 15:38:03
阅读次数:
237