摘要:
### 解题思路 此处撰写解题思路 在几个数组之间找对应值 ### 代码 ```java class Solution { public int busyStudent(int[] startTime, int[] endTime, int queryTime) { int count = 0; f 阅读全文
摘要:
package com.example.demo; public class Sort { //java源码之string public static void main(String[] args) { {//空字符对象创建字符串 String s = new String(); System.o 阅读全文
摘要:
package com.example.demo; public class Lc70 { //经典递归问题 /* 一般解法为递归和非递归 这里说一下非递归 */ public static int climbStairs(int n) { //这里单独设置返回是防止数组越界 if(n==1){ r 阅读全文
摘要:
package com.example.demo; //这是一个简单的面向对象的例子,抽象具体事物变成模型 public class Person { //对象定义:对现实中具体事物(万事万物)的抽象 //对人进行抽象,应该有的属性,嘴,脚 //嘴有吃这个功能,脚有走这个功能 //属性:嘴 priv 阅读全文
摘要:
本题考点:牛顿迭代法牛顿迭代法的定义: 这题的解法用暴力解法是非常简单的。主要的麻烦在于如何解的更好,答案就是用牛顿迭代法。 下面这种方法可以很有效地求出根号 aa 的近似值:首先随便猜一个近似值 xx,然后不断令 xx 等于 xx 和 a/xa/x 的平均数,迭代个六七次后 xx 的值就已经相当精 阅读全文