- 博客(10)
- 资源 (3)
- 收藏
- 关注
原创 通过先序遍历,求中序遍历和后序遍历
package com.com.liutong;import java.util.Scanner;class TreeNode { public char data; public TreeNode leftChild; public TreeNode rightChild;} class BinaryTree { int i = 0; public TreeNode createBinaryTree(String arr){ if
2022-05-30 11:16:29 220
原创 巧用夹角计算8皇后问题
package com.com.liutong;public class Queen { public int row=7; public int col=7; public int [][] list =new int[8][8]; public int total=0; public void fz(){ for(int i=0;i<this.row;i++) for(int j=0;j<this.col;j
2022-05-27 18:55:40 94
原创 java DateTimeFormatter 格式化日期
package com.test;import java.time.LocalDate;import java.time.LocalDateTime;import java.time.LocalTime;import java.time.format.DateTimeFormatter;public class DateTimeFormatterTest { public static final DateTimeFormatter YYYY_MM_DD_HH_MM_SS = Dat
2021-10-07 18:53:19 143
原创 线性回归
from sklearn.model_selection import train_test_splitimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsdef cost_function(X,Y,weight,bias): #损失函数 均方差 y_hat=weight*X+bias l=y_hat-Y cost=np.sum(l**2)/2*
2021-04-14 18:22:12 75
原创 java.time包 LocalDate LocalDateTime 获取当前日期和当前时间
java.time包获取当前日期和当前时间这里我们使用LocalDate 和 LocalDateTime 这两个final类获取日期 LocalDate.now()静态方法实现获取日期和时间 使用 LocalDateTime.now() 静态方法实现package DateLiu;import java.time.*;import java.time.format.DateTimeFormatter;import java.util.Calendar;public class
2021-03-20 16:25:34 6772
原创 java 链表 快慢指针求中间节点
快慢指针 求中间节点package com.link;import java.awt.print.Printable;import java.util.ArrayList;import java.util.List;public class Solution { /** * @param head: the given linked list * @return: the array that store the values in reverse order
2021-03-04 12:06:30 195 1
原创 单链表翻转 非递归方法 返回数组
单链表翻转 非递归方法返回数组package com.link;import java.util.ArrayList;import java.util.List;public class Solution { List<Integer> list =new ArrayList<>(); public List<Integer> reverseStore(ListNode head) { // write your c
2021-03-04 11:19:44 79 1
转载 Linux中VMware虚拟机增加磁盘空间的扩容操作[图文]
Linux中VMware虚拟机增加磁盘空间的扩容操作[图文][日期:2011-02-09] 来源:Linux社区 作者:Linux编辑 [字体:大 中 小]用VMwareware虚拟机安装的Red Hat Enterprise Linux系统剩余空间不足,造成软件无法正常安装。如果重新装一遍系统就需要重新配置好开发环境和软件的安装配置。通过上网搜集的资料,结合自己的实践,总结了如下扩大硬盘空间的详细步骤,希望对大家有帮助。(1)打开VMware,选择Edit Virtual mache settin
2020-10-22 09:02:56 456
原创 python的私有化字段
python 私有化字段或者方法只需要将前面加上__比如class C(): def __init__(self,name,group): self.name=name self.__group=group def code(self): return self.__group def __code(self): return self.namec=C("1","2")print(c.code())#能返回print(c.__code())#不能返回...
2020-08-07 16:10:26 94
glpi-9.2.3.zip
2020-07-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人