12 2020 档案

摘要:乘法群: 定理: 阅读全文
posted @ 2020-12-31 13:05 然终酒肆 阅读(3270) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/buaaxhzh/p/9138307.html 写的很好 阅读全文
posted @ 2020-12-23 18:49 然终酒肆 阅读(164) 评论(0) 推荐(0) 编辑
摘要:package Test; public class test0 { public static void main (String []args) { char a = ('A' | ' '); //转小写 System.out.println(a); char b = ('b' & '_'); 阅读全文
posted @ 2020-12-21 23:00 然终酒肆 阅读(124) 评论(0) 推荐(0) 编辑
摘要:有关ArrayList参见菜鸟教程 https://www.runoob.com/java/java-arraylist.html 代码不敲了 很简单 这个也是 太水了 不敲了 阅读全文
posted @ 2020-12-20 12:09 然终酒肆 阅读(73) 评论(0) 推荐(0) 编辑
摘要:没空敲了 代码是别人的轮子 稍微改了改 把单链表全实现了 package Test; public class Linked <T>{ private class Node{ private T t; private Node next; public Node(T t,Node next){ th 阅读全文
posted @ 2020-12-20 10:30 然终酒肆 阅读(71) 评论(0) 推荐(0) 编辑
摘要:package Test; public class test0 { static final int SLOW = 1;//三个名为SLOW,MEDIUM,FAST而值为1,2,3的常量,表示风扇的速度。 static final int MEDIUM = 2; static final int 阅读全文
posted @ 2020-12-20 10:16 然终酒肆 阅读(102) 评论(0) 推荐(0) 编辑
摘要:package homwk; import java.util.Scanner; public class hmwk7 { public static boolean judge(int[][] b){ for(int i=0;i<b.length;i++){ for(int j=0;j<b[i]. 阅读全文
posted @ 2020-12-20 10:09 然终酒肆 阅读(69) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/asahiLikka/p/11712298.html 看懂了 数字图像处理 就t。m。过了! 阅读全文
posted @ 2020-12-19 23:51 然终酒肆 阅读(174) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u013539952/article/details/80610260 写的一点废话也没有 舒服 阅读全文
posted @ 2020-12-19 23:38 然终酒肆 阅读(72) 评论(0) 推荐(0) 编辑
摘要:我们首先定义编码器的模型 这一章节(信道编码)其中的公式 定义 总结 上图 一定要全部记住 克拉夫特不等式(判断是否为唯一可译码) 例题: 香农第一定理 香农码 二元香农码编码步骤 直接看例题: 其中牵扯到十进制转化为二进制小数: 二元费诺码的编码 霍夫曼码: 编码步骤 看例题 很好懂 香农编码、费 阅读全文
posted @ 2020-12-18 23:17 然终酒肆 阅读(1186) 评论(0) 推荐(0) 编辑
摘要:import java.util.Arrays; public class ArraysSort_0 { public static void main(String args[]) { int[] a={1,0,2,4,3}; Arrays.sort(a); for(int i=0;i<a.len 阅读全文
posted @ 2020-12-16 18:54 然终酒肆 阅读(66) 评论(0) 推荐(0) 编辑
摘要:复习bfs 这题我们用bfs 做 class Solution { public: int numSquares(int n) { queue <int> q; vector <int> dist(n+1,INT_MAX); q.push(0); dist[0] = 0; while(q.size( 阅读全文
posted @ 2020-12-16 18:51 然终酒肆 阅读(72) 评论(0) 推荐(0) 编辑
摘要:package homwk; import java.util.Arrays; import java.util.Scanner; public class hmwk6 { public static void main(String[] args) { @SuppressWarnings("res 阅读全文
posted @ 2020-12-16 17:50 然终酒肆 阅读(73) 评论(0) 推荐(0) 编辑
摘要:二分查找 主要是其中的细节 这些位置的判断 不去自己调试真的不知道。。。到了考场上如果要手写,连bug也不知道 我也不知道程序设计要笔试是什么意思 本身就是很傻的行为 考作业题 考背诵么? package Test; public class Main { public static void ma 阅读全文
posted @ 2020-12-16 11:10 然终酒肆 阅读(66) 评论(0) 推荐(0) 编辑
摘要:package Test; import java.util.Scanner; import java.text.DecimalFormat; import java.util.Random; public class Main { static DecimalFormat df = new Dec 阅读全文
posted @ 2020-12-16 10:36 然终酒肆 阅读(64) 评论(0) 推荐(0) 编辑
摘要:1. 斐波那契 package Test; import java.util.Scanner; //import java.util.*; public class Main { public static int f(int a) { if(a<0) return -1; if(a == 0) { 阅读全文
posted @ 2020-12-16 10:30 然终酒肆 阅读(86) 评论(0) 推荐(0) 编辑
摘要:递归: import java.util.Scanner; //import java.util.*; public class Main { public static String f(int base,int num){ String str=""; String wait="01234567 阅读全文
posted @ 2020-12-16 09:50 然终酒肆 阅读(123) 评论(0) 推荐(0) 编辑
摘要:今天复习dfs 这个题很简单 我们用dfs搜 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val 阅读全文
posted @ 2020-12-16 09:30 然终酒肆 阅读(78) 评论(0) 推荐(0) 编辑
摘要:前缀和 阅读全文
posted @ 2020-12-13 16:42 然终酒肆 阅读(91) 评论(0) 推荐(0) 编辑
摘要:相信我 会更快 #include <bits/stdc++.h> using namespace std; int main(int argc, char** argv) { string c2 = "56"; int a = c2[0] - '0'; cout << a<<endl; char c 阅读全文
posted @ 2020-12-13 16:02 然终酒肆 阅读(317) 评论(0) 推荐(0) 编辑
摘要:给定一个整数数组,判断是否存在重复元素。 如果任意一值在数组中出现至少两次,函数返回 true 。如果数组中每个元素都不相同,则返回 false 。 最简洁的代码: set函数去重 class Solution: def containsDuplicate(self, nums: List[int] 阅读全文
posted @ 2020-12-13 14:51 然终酒肆 阅读(615) 评论(0) 推荐(0) 编辑
摘要:位运算的奇技淫巧 阅读全文
posted @ 2020-12-13 12:59 然终酒肆 阅读(64) 评论(0) 推荐(0) 编辑
摘要:import java.util.*; 阅读全文
posted @ 2020-12-13 11:37 然终酒肆 阅读(482) 评论(0) 推荐(0) 编辑
摘要:获取类功能 public class test0 { public static void main(String[] args) { String str = "anAdEfg"; System.out.println("String类的获取功能"); //获取字符串的长度 int length 阅读全文
posted @ 2020-12-13 11:32 然终酒肆 阅读(107) 评论(0) 推荐(0) 编辑
摘要:1 public class test0 { 2 3 public static void main(String[] args) 4 { 5 6 System.out.println("90 度的正弦值:" + Math.sin(Math.PI/2)); 7 System.out.println( 阅读全文
posted @ 2020-12-12 23:23 然终酒肆 阅读(132) 评论(0) 推荐(0) 编辑
摘要:用java的helloworld 我知道这是最低级的东西,总要让结构完整 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); // 输出 Hello 阅读全文
posted @ 2020-12-12 23:11 然终酒肆 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示