月度归档: 2014年12月

Mathematica笔记:函数类型

2014年12月29日

Mathematica的函数,按是否对参数求值为分二类:1、必求值,2、可能求值。 数学函数(如Sum、Integrate)在参数含有符号时不求值。 结构函数(如Level、Position)总会求值。 查询函数(如AtomQ、IntegerQ)总会求值。这类函数的函数名总是以Q结尾,且总是返回tr […]

Maximum Gap

2014年12月15日

来自https://oj.leetcode.com/problems/maximum-gap/。 题目 Given an unsorted array, find the maximum difference between the successive elements in its sorted […]