摘要: [0707.设计链表] class MyLinkedNode{ int val; MyLinkedNode next; public MyLinkedNode (int val, MyLinkedNode next){ val = this.val; next = this.next; } } cl 阅读全文
posted @ 2022-11-01 21:43 跬步瑶 阅读(47) 评论(0) 推荐(0)
摘要: [0203.移除链表元素] /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { thi 阅读全文
posted @ 2022-11-01 21:41 跬步瑶 阅读(33) 评论(0) 推荐(0)
摘要: [0059.螺旋矩阵II class Solution { public int[][] generateMatrix(int n) { int count = 1; int [][] res = new int [n][n]; int loop = n / 2; int stari = 0; in 阅读全文
posted @ 2022-10-30 21:50 跬步瑶 阅读(36) 评论(0) 推荐(0)
摘要: [0059.螺旋矩阵II] ## ```Java class Solution { public int[][] generateMatrix(int n) { int count = 1; int [][] res = new int [n][n]; int loop = n / 2; int s 阅读全文
posted @ 2022-10-29 21:32 跬步瑶 阅读(23) 评论(0) 推荐(0)
摘要: [0209长度最小的子数组] class Solution { public int minSubArrayLen(int target, int[] nums) { int numsLength = nums.length; for (int k = 0; k <= numsLength-1; k 阅读全文
posted @ 2022-10-28 21:45 跬步瑶 阅读(24) 评论(0) 推荐(0)
摘要: [0027移除元素] class Solution { public int removeElement(int[] nums, int val) { int slowIndex = 0; int fastIndex = 0; int numsLength = nums.length; for(fa 阅读全文
posted @ 2022-10-27 21:36 跬步瑶 阅读(52) 评论(0) 推荐(0)
摘要: [0704二分查找] class Solution { public int search(int[] nums, int target) { for (int i = 0; i <= nums.length-1; i++){ if (nums[i] == target) return i; } r 阅读全文
posted @ 2022-10-26 21:42 跬步瑶 阅读(30) 评论(0) 推荐(0)
摘要: 概述:对于普通最小二乘法,因为种种原因残差项要满足很多的条件,如同方差性,但是因为现实中的数据可能达不到这样那样的要求,所以这个时候就出现了广义最小二乘法 1.如果存在外部协方差,即协方差阵不是对角阵,就是广义最小二乘 2.如果协方差阵是对角阵,且对角线各不相等,就是加权最小二乘 3.如果协方差阵是 阅读全文
posted @ 2022-10-11 16:10 跬步瑶 阅读(1976) 评论(1) 推荐(0)
摘要: 涉及Pycharm的安装、基本使用方法。 阅读全文
posted @ 2022-04-11 10:13 跬步瑶 阅读(0) 评论(0) 推荐(0)