摘要:
题目来源 http://poj.org/problem?id=2230 题目大意 求无向图从起点1開始从不同方向经过全部边的一条路径。输出随意一条。 题解 把无向图的边拆成两条方向相反的有向边,做欧拉回路。 欧拉回路做法: 1、起点入栈。(回路的话起点能够是随意的) 2、扫描与起点相连的全部未被标记 阅读全文
posted @ 2017-06-22 15:33
claireyuancy
阅读(107)
评论(0)
推荐(0)
摘要:
1、RemoteSolrException: Expected mime type application/octet-stream but got text/html 现象: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinde 阅读全文
posted @ 2017-06-22 14:07
claireyuancy
阅读(258)
评论(0)
推荐(0)
摘要:
# coding=gbk from encodings import gbk import re import sys import os import pyodbc import traceback import decimal #连接数据库 conn = pyodbc.connect('DRIV 阅读全文
posted @ 2017-06-22 14:05
claireyuancy
阅读(183)
评论(0)
推荐(0)
摘要:
题目链接:https://leetcode.com/problems/single-number/ 题目:Given an array of integers, every element appears twice except for one. Find that single one. Not 阅读全文
posted @ 2017-06-22 13:30
claireyuancy
阅读(112)
评论(0)
推荐(0)
摘要:
A natural number, N, that can be written as the sum and product of a given set of at least two natural numbers, {a1, a2, ... , ak} is called a product 阅读全文
posted @ 2017-06-22 11:55
claireyuancy
阅读(251)
评论(0)
推荐(0)
摘要:
今天在XCode6.3上面重写TabBar的时候,自己定义tabBar的代理遇到的一个问题 在重写tabBar的代理的时候遇到了一个警告。 解决方法: 在.m文件里 警告消失 $(function () { $('pre.prettyprint code').each(function () { v 阅读全文
posted @ 2017-06-22 11:00
claireyuancy
阅读(106)
评论(0)
推荐(0)
摘要:
PopupWindow简单介绍 PopupWindow是悬浮在当前activity上的一个容器,用它能够展示随意的内容。 PopupWindow跟位置有关的API有以下几个: showAsDropDown(View anchor, int xoff, int yoff, int gravity) 显 阅读全文
posted @ 2017-06-22 09:46
claireyuancy
阅读(356)
评论(0)
推荐(0)
摘要:
PHP7和HHVM比較PHP7的在真实场景的性能确实已经和HHVM相当, 在一些场景甚至超过了HHVM。HHVM的运维复杂, 是多线程模型, 这就代表着假设一个线程导致crash了, 那么整个服务就挂了, 而且它不会自己主动重新启动。另外它採用JIT, 那么意味着, 重新启动以后要预热, 没有预热的 阅读全文
posted @ 2017-06-22 09:11
claireyuancy
阅读(9247)
评论(0)
推荐(0)