有段时间没有看SICP了……那本书真的给了我很多启发。 考试过后一定要再读SICP。 依然按SICP对语言的分析方式来。这次,加上自己的理解。 在数学中,函数是两个集合之间的二元关系,它与第一个集合的每个元素正好关联第二个集合的一个元素。典型的例子是从整数到整数,或从实数到实数的函数。 In mat ...
分类:
编程语言 时间:
2021-05-24 07:44:23
阅读次数:
0
https://leetcode-cn.com/problems/leaf-similar-trees/ class Solution { public boolean leafSimilar(TreeNode root1, TreeNode root2) { List<Integer> list1 ...
分类:
其他好文 时间:
2021-05-24 04:05:29
阅读次数:
0
Super Palindromes (H) 题目 Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given tw ...
分类:
其他好文 时间:
2021-05-24 02:27:55
阅读次数:
0
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:
其他好文 时间:
2021-05-24 01:38:37
阅读次数:
0
package test; public class BubbleSort { public void bubble(Integer[] array,int from,int end) { for(int k=1;k<end-from+1;k++) { for(int i=end-from;i>=k ...
分类:
编程语言 时间:
2021-05-24 00:31:25
阅读次数:
0
Delphi UniCode转汉字(\u 格式)、汉字转UniCode(\u 格式) 1、UniCode转汉字 function UnicodeToChinese(sStr: string): string; var i: Integer; index: Integer; temp, top, la ...
// var arr2 = [1,2,3,2,2,1,3,4,2,5]; // // 数组去重 // for(var i=0;i<arr2.length;i++){ // // console.log(arr2[i]); // // 获取当前元素后的元素 // for(var j=i+1;j<arr ...
分类:
编程语言 时间:
2021-05-23 23:42:15
阅读次数:
0
C语言 使用long类型: #include "math.h" int reverse(int x){ int max = pow(2,31)-1; int min = pow(2,31)*-1; long n=0; while (x!=0){ n = n*10 + x%10; x = x/10; ...
分类:
编程语言 时间:
2021-05-23 23:09:40
阅读次数:
0
There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer array nums. Let ...
分类:
其他好文 时间:
2021-05-23 23:06:06
阅读次数:
0
class Solution { public: int reverse(int x) { // cout << 1111 << endl; long long ret = 0; long long y = x; int f = 0; if(y < 0) f = 1, y = -y; // cout ...
分类:
其他好文 时间:
2021-05-23 23:04:46
阅读次数:
0