package sort /** * QuckSort best case O(nlgn), worst case O(n^2) * worst case occurred in: * 1. all element sorted * 2. partition unbalanced * */ clas... ...
分类:
其他好文 时间:
2019-09-30 12:45:21
阅读次数:
84
Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of ...
分类:
其他好文 时间:
2019-09-29 23:23:17
阅读次数:
100
①中文题目 编写一个程序,找到两个单链表相交的起始节点。 如下面的两个链表: 在节点 c1 开始相交。 注意: 如果两个链表没有交点,返回 null.在返回结果后,两个链表仍须保持原有的结构。可假定整个链表结构中没有循环。程序尽量满足 O(n) 时间复杂度,且仅用 O(1) 内存。 ②思路 遍历,O ...
分类:
其他好文 时间:
2019-09-29 22:16:21
阅读次数:
116
1063 Set Similarity (25 分) 1063 Set Similarity (25 分) 1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is defined to ...
分类:
其他好文 时间:
2019-09-29 19:43:39
阅读次数:
87
Redis 数据类型 1 . 5种类型: String :字符类型 Hash: 字典类型 List: 列表 Set: 集合 Sorted set:有序集合 2 . 键的通用操作命令: KEYS * 查看KEY支持通配符 DEL 删除给定的一个或多个key EXISTS 检查是否存在 RENAME 变 ...
分类:
其他好文 时间:
2019-09-29 13:08:00
阅读次数:
100
ITI 1120 - Assignment 1Submit a zip file with a1q1.py, a1q2.py, a1q3.py, a1q4.py.1. (2 points) Two numbers a and b are called pythagorean pair if both ...
分类:
其他好文 时间:
2019-09-28 20:15:31
阅读次数:
95
Assignment 2Event Driven Computing 2019Assignment 2 - FSA Simulator1. SummaryThis assignment is the first of two in which you will develop an editing ...
分类:
其他好文 时间:
2019-09-28 20:14:20
阅读次数:
95
100. Same Tree Easy Easy Easy Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same ...
分类:
其他好文 时间:
2019-09-28 09:14:13
阅读次数:
93
"Codeforces Global Round 2" 题目链接: "E. Pavel and Triangles" Pavel has several sticks with lengths equal to powers of two. He has $a_0$ sticks of length ...
分类:
其他好文 时间:
2019-09-27 23:08:20
阅读次数:
117
Redis常用命令 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及zset(sorted set:有序集合)等 https://gitee.com/nmwork/RedisUtil 1. Redis数据类型 1.1. List类型 1.1.1 ...
分类:
其他好文 时间:
2019-09-27 22:41:17
阅读次数:
105