/images/avatar.png

统计iOS工程代码行数

虽然说这是一件毫无意义的事,而且如果代码打成库,统计还不准确。。当时有时候就是需要统计,比如说现在这个时间节点。。 1 2 3 4 5 # 这个是包含空格

人为什么会过分自信

为什么人们会过分自信呢? 这主要是因为人们有很多其他导致自己过分自信的特征。 比如说人们思维中有自我归因偏差:倾向于把好的结果归结为自己能力出众

LeetCode 8 String to Integer (atoi)

Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value. The string can contain additional characters after those that form the integral number, which are ignored

LeetCode 6 ZigZag Conversion(Z字转换)

The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) 1 2 3 P A H N A P L S I I G Y I R And then read line by line: “PAHNAPLSIIGYIR” Write the code that will take a string and make this conversion given a number

LeetCode 106 Construct Binary Tree from Inorder and Postorder Traversal(由中序和后序遍历建立二叉树)

Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. For example, given 1 2 inorder = [9,3,15,20,7] postorder = [9,15,7,20,3] Return the following binary tree: 1 2 3 4 5 3 / \ 9 20 / \ 15 7 解: 1 2 3 4 5 6 7 8 9 10 11 12 13 14

MeshLab

遇到了移植MeshLab到ARM平台的情景,后来研究了很久初步编译成功。 先把普通的编译流程记一下,ARM的后面再说了。 相关库 visual sfm openmvs refinemesh vcglib OpenCL 编译