Kalevitch and Chess
Time Limit: 2000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
A famous Berland's painter Kalevitch likes to ...
分类:
其他好文 时间:
2016-06-12 02:46:17
阅读次数:
170
在游戏的编写中,不可避免的出现很多应用数据结构的地方,有些简单的游戏,只是由几个数据结构的组合,所以说,数据结构在游戏编程中扮演着很重要的角色。
本文主要讲述数据结构在游戏中的应用,其中包括对链表、顺序表、栈、队列、二叉树及图的介绍。读者在阅读本文以前,应对数据结构有所了解,并且熟悉C/C++语言的各种功用。好了,现在我们由链表开始吧!
1、链表
在这一节中,我们将通过一个类似雷...
分类:
其他好文 时间:
2016-06-12 02:46:41
阅读次数:
170
Container With Most Water
Total Accepted: 80614 Total
Submissions: 230716 Difficulty: Medium
Given n non-negative integers a1, a2,
..., an, where each represents a point at...
分类:
其他好文 时间:
2016-06-12 02:44:00
阅读次数:
163
题目描述
输入两个链表,找出它们的第一个公共结点。
思路分析:将其中一个链表结点,存进HashMap中,将利用ContainsKey()进行判断是否有公共结点
代码1:
import java.util.*;
public class Solution {
public ListNode FindFirstCommonNode(ListNode pHead1, ListNode...
分类:
其他好文 时间:
2016-06-12 02:43:52
阅读次数:
108
万年历(农历阴历转换)
package com.java;
import java.util.Calendar;
public class LunarCalendar {
public static void main(String[] args) {
Solar s = new Solar();
s.getDate(2020, 9);
String t = MutualCon...
分类:
其他好文 时间:
2016-06-12 02:43:31
阅读次数:
282
Zookeeper的安装与配置(单机和伪分布式)前言
云计算越来越流行的今天,单一机器处理能力已经不能满足我们的需求,不得不采用大量的服务集群。服务集群对外提供服务的过程中,有很多的配置需要随时更新,服务间需要协调工作,这些信息如何推送到各个节点?并且保证信息的一致性和可靠性?
一. Zookeeper概念
既然要想使用Zookeeper,那么我们就要搞清楚它是什么,它是用来做什么的, 总体结...
分类:
其他好文 时间:
2016-06-12 02:45:23
阅读次数:
251
Unique Paths
机器人在最左上角,它只能向右和向下走,找出所有的独一无二的路径,使它能达到最右下角位置。
对已这个题我首先的思路是递归,因为机器人只能向下和向右走,所以将下和右方向的路径加起来就行了,代码也清晰明了,代码如下,想法是好的,可是现实是残酷的,时间复杂度不够。
class Solution {
public:
int uniquePaths(int m...
分类:
其他好文 时间:
2016-06-12 02:44:48
阅读次数:
160
深度优先搜索 广度优先搜索...
分类:
其他好文 时间:
2016-06-12 02:45:14
阅读次数:
177
Word Break
Total Accepted: 89221 Total
Submissions: 347438 Difficulty: Medium
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separa...
分类:
其他好文 时间:
2016-06-12 02:42:54
阅读次数:
116
我们正漫步在昆明的洱海边,手机响起。
手机显示的是York的电话,我心说准没好事。
收拾心情,用职业的状态接起电话。
“Hi York!”
“Hi Elber,有点小问题需要SP解决一下。”
York性格比较沉稳,很适合干各方协调的工作。
之前各方扯皮的时候,通常是他出来打圆场。
现在他说的小问题,估计问题其实不小。
“请说。”
“是这样,贵司第一批出货的芯片不良率有点高,日方经...
分类:
其他好文 时间:
2016-06-12 02:43:50
阅读次数:
142
转载自:here
本文将简述字符集,字符编码的概念。以及在遭遇乱码时的一些常用诊断技巧
背景:字符集和编码无疑是IT菜鸟甚至是各种大神的头痛问题。当遇到纷繁复杂的字符集,各种火星文和乱码时,问题的定位往往变得非常困难。本文就将会从原理方面对字符集和编码做个简单的科普介绍,同时也会介绍一些通用的乱码故障定位的方法以方便读者以后能够更从容的定位相关问题。在正式介绍之前,先做个小申明...
分类:
其他好文 时间:
2016-06-12 02:43:05
阅读次数:
190
题目链接:https://leetcode.com/problems/excel-sheet-column-number/
题目:
Related to question Excel Sheet Column Title
Given a column title as appear in an Excel sheet, return its corresponding colum...
分类:
其他好文 时间:
2016-06-12 02:42:16
阅读次数:
126
题目链接:https://leetcode.com/problems/roman-to-integer/
题目:
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
思路:
easy
算法:
...
分类:
其他好文 时间:
2016-06-12 02:41:50
阅读次数:
174
题目链接:点击打开链接
题目:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
...
分类:
其他好文 时间:
2016-06-12 02:41:30
阅读次数:
112
题目链接:https://leetcode.com/problems/add-digits/
题目:
Given a non-negative integer num, repeatedly add all its digits until the result has only
one digit.
For example:
Given num = 38, the p...
分类:
其他好文 时间:
2016-06-12 02:43:27
阅读次数:
135
U盘开局是指设备在开始部署时,用户预先将开局文件存储在U盘中,启动时设备通过U盘下载开局文件来完成自动升级及配置。华为S系列交换机和AR G3路由器系列都支持U盘开局功能。
U盘开局流程
先制作U盘开局索引文件(文件系统格式为FAT32),开局索引文件保存至U盘根目录下,需要加载的开局文件保存至U盘开局索引文件指定的目录下。
流程图:
因为U盘开局在eNSP中无法测试,有些疑问:U...
分类:
其他好文 时间:
2016-06-12 02:43:13
阅读次数:
274
题目链接:https://leetcode.com/problems/anagrams/
题目:
Given an array of strings, group anagrams together.
For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"],
Return:
[
["ate", "...
分类:
其他好文 时间:
2016-06-12 02:41:58
阅读次数:
125