摘要: 一、 问题陈述 问题如上图,下面为中文描述: 有容量限制的设施地址问题:假设有n个设施和m个顾客,我们可以作以下操作: ①开启设施 ②分配顾客到某设施 上述两个操作都有各自的成本,我们希望总成本最低,且分配到某设施的总需求不能超过其容量。 二、建立模型 为了方便问题的解决,我们首先建立模型,更具体地 阅读全文
posted @ 2018-12-23 23:24 thougr 阅读(420) 评论(0) 推荐(0) 编辑
摘要: Question Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0 阅读全文
posted @ 2018-10-01 00:46 thougr 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在安装bochs之前,我们先需要安装虚拟机和linux发行版,也可以安装双系统,总之有个linux操作系统就好。 我是在ubuntu14.04系统下安装bochs的。 安装Bochs 以下为安装步骤 注意各行结尾'\'字符前有个空格,/your_path/要修改为你想要安装的路径,相比与原书的配置, 阅读全文
posted @ 2018-09-27 23:05 thougr 阅读(8074) 评论(2) 推荐(2) 编辑
摘要: Question Q1.Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lis 阅读全文
posted @ 2018-09-23 01:16 thougr 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 在网上找了很多办法,大多不行,具体原因也不太清楚,应该是Unity某些配置被改了。 我是在ubuntu14.04平台利用apt-get卸载python后,关机重启出现"打不开终端和侧边栏消失"等问题的。 最后是根据https://blog.csdn.net/terence1212/article/d 阅读全文
posted @ 2018-09-21 23:54 thougr 阅读(8432) 评论(0) 推荐(2) 编辑
摘要: Question 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 woul 阅读全文
posted @ 2018-09-16 23:19 thougr 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Question Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover th 阅读全文
posted @ 2018-09-09 22:38 thougr 阅读(117) 评论(0) 推荐(0) 编辑