以上我們談了一些 邏輯的基礎,接下來我們會談一些 數學的基礎,也就是整數與實數系統。其實我們已經用了很多,非正式地,接下來我們會正式地討論他們。要 建構 實數系統的一個方法就是利用公理跟集合論來建構。首先我們需要從集合論出發,定義在 set $A$ 上的 二元運算子(binary operator)... ...
分类:
其他好文 时间:
2020-02-05 10:13:59
阅读次数:
62
用到的表的介绍 student: sid(学生ID),sname(学生姓名),sage,ssexcourse: cid(课程ID),cname,tid(教师ID)teacher: tid,tnamesc:sid,cid,score 只是附上题目和代码,没有运行结果 1.查询"01"课程比"02"课程 ...
分类:
数据库 时间:
2020-02-04 15:50:52
阅读次数:
124
动态数组vector 1、创建: vector<int>v; vector<int>v1; vector<int>v2(v1) 即 vector<int>v2 = v1; vector<int>v = {1,3,5,7,9}; 即 vector<int>v{1,3,5,7,9}; vector<in ...
分类:
编程语言 时间:
2020-02-04 13:50:13
阅读次数:
75
You are given a positive integer n, please count how many positive integers k satisfy kk≤nkk≤n. InputThere are no more than 50 test cases. Each case o ...
分类:
其他好文 时间:
2020-02-04 12:22:03
阅读次数:
55
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we ...
分类:
其他好文 时间:
2020-02-04 10:24:21
阅读次数:
67
1 """ 2 You have N gardens, labelled 1 to N. In each garden, you want to plant one of 4 types of flowers. 3 paths[i] = [x, y] describes the existence ...
分类:
其他好文 时间:
2020-02-03 22:04:46
阅读次数:
55
直接看代码,先定义要遍历的数组 通过th:each遍历获取 另外一种方法: 两种不同方法的输出结果 ...
分类:
编程语言 时间:
2020-02-03 20:45:36
阅读次数:
401
How would you implement mergesort without using recursion? The idea of iterative mergesort is to start from N sorted sublists of length 1, and each ti ...
分类:
其他好文 时间:
2020-02-03 13:35:41
阅读次数:
117
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2020-02-03 12:04:03
阅读次数:
69