- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 leetcod 213 House Robber II
After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This time, all houses at this place are arranged in a ci...
2018-04-30 22:01:50 168
原创 leetcode 23 合并n个链表
Definition for singly-linked list.Merge K Sorted Lists (#23)Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->...
2018-04-30 21:56:39 355
原创 leetcode 4. 两个排序数组的中位数
给定两个大小为 m 和 n 的有序数组 nums1 和 nums2 。请找出这两个有序数组的中位数。要求算法的时间复杂度为 O(log (m+n)) 。示例 1:nums1 = [1, 3] nums2 = [2]中位数是 2.0 示例 2:nums1 = [1, 2] nums2 = [3, 4]中位数是 (2 + 3)/2 = 2.5思路: 两个数组合并,然...
2018-04-23 22:10:40 139
原创 以后一大段时间要干的事情
之前说要整python爬虫,因为出现了一点意外,估计要等到很久以后才能整了。 以后博客应该会有 操作系统实验 python课要学习的 python网络编程 计算机图形学的pyopengl三大块,以及懒得写到博客的计算机网络实验,以及不知道什么时候开始动工的魂斗罗成了,爬虫什么的,还是膜 膜康仙吧!!!!!!!!!...
2018-04-19 16:26:05 223 1
原创 (16 DOS)裸机汇编之实现主程序调用三个子程序(操作系统第一次实验)
本来想复制粘贴实验报告,但是发现图片不能够复制粘贴,而且意义不大。。。。。。。可以。第一步:要会打汇编代码,弄成asm后缀,用以nasm第二步:将汇编代码nasm编译成可行的二进制文件,再把多个文件弄成整一个文件。第三步:将二进制文件当做软盘,载入虚拟机中。那么虚拟机在开机的时候就可以运行我们所写的代码。可以那么这篇博文就到这里结束啦 第一步:写汇编代码,以最简单的输出HELLO,WORLD...
2018-04-09 14:08:29 2263 1
原创 第十一章部分作业
11-1def city_country(city, country): return(city.title() + ", " + country.title())import unittestclass CitiesTestCase(unittest.TestCase): def test_city_country(self): """Does a simple cit...
2018-04-09 14:05:06 1249
原创 第十章部分习题
10 - 1 with open('a.txt') as text: all = text.read() print(all)with open('a.txt') as text: for line in text : print(line.rstrip())with open('a.txt') as text: lines = text.readlines()print (lines) 1...
2018-04-02 09:03:43 831
原创 第九章部分习题
9-1:class Restaurant(): def __init__(self): self.name = "fandian" self.type = "hahaha" def print(self): print(self.name + self.type) def working(self): print (" restaurant is working now ")a = Res...
2018-04-02 08:37:17 345
空空如也
C++ 读取文件 被killed
2021-04-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人