最终效果图:
ViewController.h
//
// ViewController.h
// PinYin4Objc汉字转拼音演示demo
//
// Created by beyond on 14-7-26.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import...
分类:
移动开发 时间:
2014-07-26 15:08:40
阅读次数:
291
Problem Description
In the shooting game, the player can choose to stand in the position of [1, X] to shoot, you can shoot all the nearest K targets. The value of K may be different on different shoo...
分类:
其他好文 时间:
2014-07-26 15:08:00
阅读次数:
383
//
// main.swift
// helloSwift
//
// Created by cyteven on 14-7-23.
// Copyright (c) 2014年 cyteven. All rights reserved.
//
import Foundation
//打印字符串
println("Hello, World!")
//变量定义...
分类:
其他好文 时间:
2014-07-26 15:06:50
阅读次数:
215
好玩的编程
程序设计的柔术
当大家坐下来并计划应该如何组织程序的时候,对于这个具体的程序,还没有任何的经验。在实现功能的时候,会逐渐地学到对原始设计有用的新知识。不应该无视一路走来所吸取的教训,而应该将它们用于软件的重新设计(或重构)中。
灵活性的实现包括许多方面,下面是其中两个:
原型设计:python最棒的功能之一就是可以快速地编写程序。编写原型程序是更充分地了解问题的一种很好的方法。...
分类:
编程语言 时间:
2014-07-26 15:05:50
阅读次数:
207
Problem Description
A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the hat’s words in a dictionary.
Input
...
分类:
其他好文 时间:
2014-07-26 15:02:10
阅读次数:
220
【Blending】 Blending is used to make transparent objects. When graphics are rendered, after all shaders have executed and all textures have been ap...
分类:
其他好文 时间:
2014-07-26 14:53:40
阅读次数:
306
在上一篇博文中,我们对KNN算法思想及流程有了初步的了解,KNN是采用测量不同特征值之间的距离方法进行分类,也就是说对于每个样本数据,需要和训练集中的所有数据进行欧氏距离计算。这里简述KNN算法的特点:优点:精度高,对异常值不敏感,无数据输入假定缺点:计算复杂度高,空间复杂度高适用数据范围:数值.....
分类:
编程语言 时间:
2014-07-26 14:52:00
阅读次数:
361
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
今天用python自带的sorted对一个列表进行排序, 在这里总结一下只要是可迭代对象都可以用sorted 。sorted(itrearble, cmp=None, key=None, reverse=False)=号后面是默认值 默认是升序排序的, 如果想让结果降序排列,用reverse=Tru...
分类:
编程语言 时间:
2014-07-26 14:49:40
阅读次数:
284
snack是一个用于在linux制作图形界面(GUI)的模块,该模块由c编写,而且redhat的系统都自带这个模块。1.获取模块虽然redhat系统会自带这个模块,但是直接去import snack会提示找不到模块,一个原因是我们重装了系统的python,所以如果直接import不能找到模块,可以通...
分类:
编程语言 时间:
2014-07-26 14:42:40
阅读次数:
360