eval() 将字符串类型的代码执行并返回结果 exec()将自字符串类型的代码执行 compile 将字符串类型的代码编译。代码对象能够通过exec语句来执行或者eval()进行求值。 参数说明: 1. 参数source:字符串或者AST(Abstract Syntax Trees)对象。即需要动 ...
分类:
其他好文 时间:
2019-03-19 21:43:08
阅读次数:
150
"https://github.com/xieqing/avl tree" An AVL Tree Implementation In C There are several choices when implementing AVL trees: store height or balance f ...
分类:
其他好文 时间:
2019-03-17 23:13:54
阅读次数:
128
Specific topics in Part 2 include: greedy algorithms (scheduling, minimum spanning trees, clustering, Huffman codes), dynamic programming (knapsack, s ...
分类:
其他好文 时间:
2019-03-15 09:15:23
阅读次数:
287
```cpp / 用和模板类似的方法就行 但是实际上弱化版不用考虑匹配情况限制更加宽松, 只需要保存每个位置有无插头即可, / include include include include include include define ll long long define M 13 define ...
分类:
其他好文 时间:
2019-03-12 12:40:16
阅读次数:
152
Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves ...
分类:
其他好文 时间:
2019-02-28 15:23:41
阅读次数:
120
语法:arraylist.sort(sortby); sortby:排序函数; 例子:st=[{"ID":15,"trees":2,"NodeNM":" 省属","isLeaf":1,"haveData":null,"行政区划":"4290","项目类型":null},{"ID":14,"trees ...
分类:
编程语言 时间:
2019-02-18 10:19:18
阅读次数:
243
题目要求 Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. Two binary trees are c ...
分类:
其他好文 时间:
2019-02-17 11:15:34
阅读次数:
185
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:
其他好文 时间:
2019-02-14 22:19:34
阅读次数:
204
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
分类:
其他好文 时间:
2019-02-14 15:05:23
阅读次数:
168
<题目链接> 题目大意: 有一个农民,站在(0,0)点,从(1,1)点到(m,n)点每个点上有棵树,问这个农民能看到多少棵树。(如果多棵树在同一条直线上,那么他只能看到一颗) 解题分析: 因为农民站在(0,0)点,所以,我们根据图像分析可得,设树的坐标为(x,y),当gcd(x,y)=1,即树的横、 ...
分类:
其他好文 时间:
2019-02-10 09:16:24
阅读次数:
166