- 博客(24)
- 收藏
- 关注
原创 二叉树的遍历
二叉树的前序遍历:/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */public class Solution
2015-04-27 22:52:09 395
转载 面试题之发散思维能力:如何用非常规方法求1+2+···+n
对于 C++ 实现与 java 实现还是有区别的。 利用 java 模拟 C++ 实现的方法:参考自:http://blog.csdn.net/lanxuezaipiao/article/details/19086179
2015-03-22 13:33:02 460
原创 matlab mex 文件
1》mex HelloWorld: vim mexHelloWorld.c 1 // 标准需要引入的头文件 2 #include "mex.h" 3 // 入口函数,相当于 main 函数一样 4 void mexFunction(int nlhs,mxArray *plhs[],int nrhs,co
2014-12-27 10:20:41 1001
原创 mac 独立安装 GCC 解决 <omp.h> 缺失问题
在 mex 文件当中,如果引用 #include 在 mac 会出现这个错误,因为 MAC 没有使用 GCC 而 使用 clangfatal error: 'omp.h' file not found1》 安装 GCC 下载地址: http://hpc.sourceforge.net/ gunzip gcc-4.9-bin.tar.gz sudo
2014-12-21 16:02:50 9284 2
转载 matlab struct 理解
1》保存数据到 mat 文件 2》 生成数据结构:3》 操作属性:4》 加载 mat 文件 load name.mat 参考自:http://jingyan.baidu.com/article/414eccf6120cc16b431f0af9.html
2014-12-21 10:32:07 1179
原创 Axure tabs 制作
1. tabs 制作: 官网教程:http://www.axure.com/learn/dynamic-panels/basic/tab-control-tutorial
2014-05-20 01:27:02 687
原创 matplot 多图、LaTeX 格式
1.子图(subplot):#coding=utf-8import matplotlib.pyplot as pltfig = plt.figure()# fig.add_subplot(numrows, numcols, fignum)# 这个图像可以生成 numrows*numcols 这么多个图像,fignum 表示第几个图像,也表示了位置,值为 1- numrows*numco
2014-04-08 17:13:31 2924
原创 numpy 数组与类型
numpy 的基本类型: k = np.arange(5)print k # 生成 [0 1 2 3 4]print k.dtype # int32print k.shape # (5,) 元组表示一维 5 个m = np.array([np.arange(4),np.arange(4),np.arange(4)])print m # [[0 1 2 3] [0 1 2
2014-04-08 11:05:15 2739
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人