摘要:
Count the Colors Time Limit: 2 Seconds Memory Limit: 65536 KB Painting some colored segments on a line, some previously painted segments may be covere 阅读全文
摘要:
final 是修饰符,能够用于修饰变量、方法和类。修饰变量时。代表变量不能够改动,也就是常量了。常量须要在定义时赋值或通过构造函数赋值,两者仅仅能选其一;修饰方法时,代表方法仅仅能调用,不能被 override ;修饰类时,代表类不能够派生出子类。所以一个类不能既是 final 又是 abstrac 阅读全文
摘要:
原文:Using Plugins and Mixins in Your Sencha Apps概述当扩展一个框架类的功能的时候,通常都会直接将新功能写入派生类,然而,假设所需的同一功能存在于多个组件,那最有效的方式就是将它定义为一个插件或混入。插件和混入都是用来将额外功能加入到其它类的类。在本文,将 阅读全文
摘要:
题目 Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [ 阅读全文