全部文章
题目大意: 不同的人在不同的队伍里,插入链表的时候如果这个链表里有他的队友,就把它放到最后一个队友的最后,如果没有队友,就把它放到整个链表的最后面。 出链表的时候把第一个人拿出来。 思路分析: 要模拟这个链表就要记录这整个链表中的队伍存在的情况。 所以要再开一个链表的头指针和尾指针,在整个大的链表中再模拟小区域的链表。 然后就是deque部分,也就是注意head的判断以及更新。...
分类:其他 时间:2014-06-18 12:32:02 收藏:0 阅读:345
Structural Things An active class is a class whose objects own one or more processes or threads and therefore can initiate control activity. An active class is just like a class except that it...
分类:其他 时间:2014-06-17 22:44:04 收藏:0 阅读:428
Structural Things An artifact is a physical and replaceable part of a system that contains physical information (“bits”). In a system, you’ll encounter different kinds of deployment artifacts...
分类:其他 时间:2014-06-17 23:08:20 收藏:0 阅读:392
Behavioral things are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.   行...
分类:其他 时间:2014-06-17 21:47:14 收藏:0 阅读:434
题目 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:其他 时间:2014-06-17 22:15:30 收藏:0 阅读:379
Tkinter一般是python自带的,所以代码不需要其他组件,本程序是在python2.7版本实现的。 dai...
分类:编程语言 时间:2014-06-17 22:43:23 收藏:0 阅读:533
在一个类内,最常见的就是构造函数的重载了.这里我就不介绍了. 先来...
分类:编程语言 时间:2014-06-17 23:27:16 收藏:0 阅读:508
看世界杯应该看到一种精神,一种锲而不舍、四年磨一剑的精神。 平时很少看足球,但这两届世界杯,阿根廷的比赛是必看的,因为有梅西。 梅西带给我的更多的是一种精神上的感动。 现在已经不习惯在QQ空间发表说说了,四年前的一条说说:...
分类:其他 时间:2014-06-18 11:53:56 收藏:0 阅读:272
题目 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only const...
分类:其他 时间:2014-06-18 11:53:23 收藏:0 阅读:304
package com.qianhua.ui; 002   003 import android.app.Activity; 004 import android.content.Intent; 005 import and...
分类:其他 时间:2014-06-17 23:02:19 收藏:0 阅读:372
1308806308807308808323994
上一页3239936下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!