摘要: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2020-03-05 20:21 my日常work 阅读(363) 评论(0) 推荐(0)
摘要: Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, 阅读全文
posted @ 2020-03-05 12:55 my日常work 阅读(211) 评论(0) 推荐(0)
摘要: Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are 阅读全文
posted @ 2020-03-04 13:43 my日常work 阅读(309) 评论(0) 推荐(0)
摘要: 免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID 这篇博客是对Java Map对value值实现排序 首先说一下如果Map对key进行从小到大默认排序是创建TreeMap对象。Map<Integer,Integer> maps = new TreeMa 阅读全文
posted @ 2020-02-29 11:03 my日常work 阅读(11715) 评论(0) 推荐(1)
摘要: 免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID 个人感觉这篇文章(原文地址见文章尾)写的排列组合问题,非常的好,而且是一步一步引出排列组合问题,我也是看了这篇文章,一步一步按照这个思路来,最后会了自己的一套排列组合 也因此在算法竞赛中,两次用到了,成 阅读全文
posted @ 2019-05-29 23:27 my日常work 阅读(53559) 评论(6) 推荐(6)
摘要: import java.util.Arrays;import java.util.Scanner;public class Test07 { public static void main(String[] args) { Scanner scn = new Scanner(System.in); 阅读全文
posted @ 2019-02-09 15:08 my日常work 阅读(3909) 评论(0) 推荐(0)
摘要: 最近几天一直在搭建struts2框架,本身struts2框架的搭建是非常简单的,但不知道为什么最近就是总是报错,报了一大串的错 首先就是每次在类的根路径下创建struts.xml时,就报错,也不知道为什么,我还把eclipse换了一遍,结果没错了,我也是非常纳闷。 报的是: The errors b 阅读全文
posted @ 2018-10-15 23:29 my日常work 阅读(855) 评论(0) 推荐(0)
摘要: 免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID 学过java的都知道java中有非常多的读取文件流的操作。这个要回到javase的io操作了。io流说实话,初学者学的肯定会非常混乱,那么多流,什么输入流,输出流,什么文件流,什么字节流,等等。我在这里 阅读全文
posted @ 2018-10-11 15:25 my日常work 阅读(12569) 评论(0) 推荐(0)
摘要: 免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID 最近在研究螺旋矩阵,一直网上搜,基本上都是只有代码,也没有什么解释,有解释的也看不太懂,于是自己仔细想了想,终于弄出来了,下面是解题的思路。 其实最初的算法,一定是由数学衍生过来的,自己想一想,我要你画 阅读全文
posted @ 2018-09-21 23:11 my日常work 阅读(15613) 评论(0) 推荐(2)
摘要: 首先是配置tomcat的用户权限问题,最好是配置最大的权限,要不然会报错,我之前就是一直报错 <role rolename="manager"/> <user username="tomcat" password="123456" roles="manager-script,tomcat,role1 阅读全文
posted @ 2018-08-17 11:25 my日常work 阅读(907) 评论(0) 推荐(0)