PC类: public class PC { CPU cpu;//定义cpu为CPU类型 HardDisk HD; public void setCPU(CPU c){ cpuc; } public void setHardDisk(HardDisk h){ HDh; } public void show() { System.out.println("cpu的速度:"cpu.getSpeed()"硬盘的容量…
cpu速度和硬盘容量 public class CPU { int speed; public int getSpeed() { int sp; spthis.speed; return sp; } public void setSpeed(int m) { this.speedm; } } public class HardDisk { int amount; public int getAmount() { int am; amthis.amount; return am; } publi…
jQuery之所以令人爱不释手,在于其强大的选择器表达式令DOM操作优雅而艺术。jQuery的选择符支持id,tagName,css1-3 expressions,XPath,参见:http://docs.jquery.com/SelectorsDEMO: <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr…
数值法求解Axb
1.Vector Norms
满足正定性,齐次性,三角不等式 ,无穷范数是最大的坐标值 范数等价的定义: If there exist positive constants C1 and C2 such that , then || ||A and || ||B are said to be equivalent. All the vecto…
Leetcode 1329.将矩阵按对角线排序
1 题目描述(Leetcode题目链接) 给你一个 m * n 的整数矩阵 mat ,请你将同一条对角线上的元素(从左上到右下)按升序排序后,返回排好序的矩阵。 输入:mat [[3…
1. 算法描述
Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted array. 给定 m * n 的整型矩阵mat, 按照左上到右下的顺序,升序排列对接线元素。
举例: I…
刷题笔记
1329. Sort the Matrix Diagonally
题目
A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column and going in the bottom-right direction until reaching the matrix’s end. For example, the …
CSS渐变可以让你在两个或多个指定颜色之间显示平滑的过渡。 CSS定义了三种渐变类型:
Linear Gradients (goes down/up/left/right/diagonally) 下降/ 上升/左/右/对角线Radial Gradients (defined by their center) 由中心定义Conic Gradients (rotated around a center poin…