- 博客(16)
- 资源 (7)
- 收藏
- 关注
原创 swipper轮播图怎么插入文字说明
1. 在轮播图项中添加div结构,用来存放图片的说明文字(注意这是自己添加的结构,因此类名啥的可以自定义)2.修改类名为swiper-container的div的position为relative3.修改具体的css样式就好了,如top、left、font等等...
2020-04-30 15:33:20 6655
原创 PAT 甲级 1042 Shuffling Machine (20分)
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gambler...
2020-04-24 16:15:28 204
原创 PAT 甲级 1061 Dating (20分)
Sherlock Holmes received a note with some strange strings:Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings...
2020-04-24 15:06:26 121
原创 PAT 甲级 1039 Course List for Student (25分)
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...
2020-04-18 18:49:22 101
原创 PAT 甲级 1047 Student List for Course (25分)
Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input S...
2020-04-18 16:51:27 170
原创 LeetCode Mysql 176. 第二高的薪水
编写一个 SQL 查询,获取 Employee表中第二高的薪水(Salary)。+----+--------+| Id | Salary |+----+--------+| 1 | 100 || 2 | 200 || 3 | 300 |+----+--------+例如上述Employee表,SQL查询应该返回200 作为第二高的薪水。如果不存在...
2020-04-18 10:33:08 126
原创 LeetCode MySQL 197. 上升的温度
给定一个 Weather 表,编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 Id。+---------+------------------+------------------+| Id(INT) | RecordDate(DATE) | Temperature(INT) |+---------+------------------+------------...
2020-04-18 09:47:34 158
原创 LeetCode 11. 盛最多水的容器
给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点(i,ai) 。在坐标内画 n 条垂直线,垂直线 i的两个端点分别为(i,ai) 和 (i, 0)。找出其中的两条线,使得它们与x轴共同构成的容器可以容纳最多的水。说明:你不能倾斜容器,且n的值至少为 2。链接:????初始左右边界为0和height.size()每次移动左右边界的时候,题目的答案...
2020-04-18 08:59:12 119
原创 LeetCode MySQL 196. 删除重复的电子邮箱
编写一个 SQL 查询,来删除Person表中所有重复的电子邮箱,重复的邮箱里只保留Id最小的那个。+----+------------------+| Id | Email |+----+------------------+| 1 | john@example.com || 2 | bob@example.com || 3 | john@...
2020-04-13 10:45:32 252
原创 PAT 甲级 1076 Forwards on Weibo (30分)
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a ...
2020-04-11 19:29:57 112
原创 PAT 甲级 1071 Speech Patterns (25分)
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speaker...
2020-04-09 19:59:34 101
原创 PAT 甲级 1065 A+B and C (64bit) (20分)
Given three integersA,BandCin [−2^63,2^63], you are supposed to tell whetherA+B>C.Input Specification:The first line of the input gives the positive number of test cases,T(≤10). T...
2020-04-07 23:20:22 104
原创 LeetCode 面试题 01.07. 旋转矩阵
给你一幅由N × N矩阵表示的图像,其中每个像素的大小为 4 字节。请你设计一种算法,将图像旋转 90 度。不占用额外内存空间能否做到?我想可能这种方法,可能会在科学计算方面计算很大矩阵的转置时会被用到吧,其他方面会这麽要求空间吗?正方形的旋转90° = 先对角线对折,再水平对折class Solution {public: void rotate(vector&...
2020-04-07 11:10:50 127
原创 PAT 甲级 1078 Hashing (25分)
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(key)=key%TSi...
2020-04-06 15:53:13 183
原创 PAT 甲级 1012 The Best Rank (25分)
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language,M- Mathematics (Calculus or Linear Algrbra), andE- Eng...
2020-04-03 23:03:11 100
原创 PAT 甲级 1013 Battle Over Cities (25分)
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee...
2020-04-01 23:20:15 152
操作系统--多线程买票---python--有窗体界面
2019-04-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人