引用:using System.Security.Cryptography;类:public class MD5Util { public static string GetMD5(string input) { return GetMD5(i...
分类:
其他好文 时间:
2015-08-06 12:56:13
阅读次数:
105
gulp.task('jsx', function () { var src='app/script/**/*.jsx'; // src='app/script/components/selloff/*.jsx'; return gulp.src([src]) .pi...
分类:
其他好文 时间:
2015-08-06 11:02:54
阅读次数:
219
编写扩展方法public static decimal GetNextVal(this System.Data.Entity.DbContext ctx, string seqName) { return ctx.Database.SqlQuery(string.Format("SELECT {0}...
分类:
数据库 时间:
2015-08-06 09:22:27
阅读次数:
239
【094-Binary Tree Inorder Traversal(二叉树中序遍历)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, return the inorder traversal of its nodes’ values.
题目大意 对一棵二叉树进行中序遍历。
解题思路 解法一:递归实现,解法二:迭代实现。...
分类:
编程语言 时间:
2015-08-06 08:18:21
阅读次数:
305
Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.I...
分类:
编程语言 时间:
2015-08-06 01:46:07
阅读次数:
317
#define ret_ok 1
#define ret_err 1
int judge_score(int score,char *ch)
{
if(score > 100 || score
{
printf("The score you input should little than 100 and bigger than 0\n");
return ret_err...
分类:
其他好文 时间:
2015-08-06 00:37:32
阅读次数:
210
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.
For example, given the following matrix:
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0
...
分类:
其他好文 时间:
2015-08-06 00:34:07
阅读次数:
100
+ (BOOL)checkIDCard:(NSString *)sPaperId { //判断位数 if (sPaperId.length != 15 && sPaperId.length != 18) { return NO; } NSString *cari...
分类:
移动开发 时间:
2015-08-05 23:56:03
阅读次数:
226
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next...
分类:
其他好文 时间:
2015-08-05 23:55:07
阅读次数:
121
package algrithm;import java.util.Scanner;public class Sort { public static void mergeSort(int a[], int l, int r) { if (l >= r) return; int mid=(l...
分类:
编程语言 时间:
2015-08-05 23:53:39
阅读次数:
133