- 博客(3)
- 资源 (36)
- 收藏
- 关注
原创 leetcode题解(162)Find Peak Element
162. Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may conta
2018-07-25 12:04:27 176
转载 【搬运】面向对象设计的SOLID原则
S.O.L.I.D是面向对象设计和编程(OOD&OOP)中几个重要编码原则(Programming Priciple)的首字母缩写。SRPThe Single Responsibility Principle 单一责任原则OCPThe Open Closed Principle 开放封闭原则LSPThe L
2013-06-27 14:06:46 433
原创 Java中计算大数的阶乘
import java.math.BigInteger;import java.util.Scanner;class Main {// public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n = sc.ne
2013-01-30 13:10:14 405
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人