![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 53
山脚下的挑山工
这个作者很懒,什么都没留下…
展开
-
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 · 413 阅读 · 0 评论 -
【搬运】面向对象设计的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 · 440 阅读 · 0 评论 -
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 · 180 阅读 · 0 评论