摘要: import java.util.ArrayList; import java.util.List; import java.util.Queue; /* * 剑指 Offer 32 - I. 从上到下打印二叉树 */ class Solution { Queue<TreeNode> queue = 阅读全文
posted @ 2021-08-17 00:12 行之星 阅读(41) 评论(1) 推荐(0)
摘要: package com.yilan.leetcode; public class Solution { public static void main(String[] args) { int[] data = {1,2,3,3,3,3,4,5}; int k = 6; Solution so = 阅读全文
posted @ 2021-08-08 20:16 行之星 阅读(56) 评论(0) 推荐(0)
摘要: class Solution { public boolean isUnique(String astr) { Set<Character> set = new HashSet<>(); for (int j = 0; j < astr.length(); j++) { if (!set.add(a 阅读全文
posted @ 2021-08-04 13:32 行之星 阅读(229) 评论(0) 推荐(0)
摘要: package com.ll.cst; public class index { public static void main(String[] args) {// System.out.println(500%1000000007); Solution so = new Solution(); 阅读全文
posted @ 2021-08-04 13:10 行之星 阅读(183) 评论(0) 推荐(0)
摘要: package com.ll.cst; import java.math.BigInteger; /** * 测试用例: * 功能测试(输入3,5,10) * 边界值测试(输入0,1,2) * 性能测试(输入较大的数40,50,100) * @author 30140 * */public clas 阅读全文
posted @ 2021-08-04 12:44 行之星 阅读(234) 评论(0) 推荐(0)
摘要: '''python实现冒泡排序'''def maopao(list): n = len(list) for i in range(1, n): #第几趟 for j in range(0, n-i): if list[j] > list[j+1]: temp = list[j] list[j] = 阅读全文
posted @ 2021-08-03 22:50 行之星 阅读(130) 评论(0) 推荐(0)
摘要: '''二分查找:前提:数组是有序的时间复杂度:最优O(1) 最坏O(logN)'''def area(alist, targe): n = len(alist) left = 0 right = n - 1 while left <= right: mid = (left + right) // 2 阅读全文
posted @ 2021-08-03 22:37 行之星 阅读(88) 评论(0) 推荐(0)
摘要: 在路径为/chapter05的上下文中,Servlet[springmvc]的Servlet.service()引发了具有根本原因的异常Request processing failed; nested exception is org.springframework.beans.factory.N 阅读全文
posted @ 2021-07-23 17:09 行之星 阅读(1960) 评论(0) 推荐(0)
摘要: 1.Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]:Invocation of init method failed 2.错误 [mai 阅读全文
posted @ 2021-07-23 14:40 行之星 阅读(905) 评论(0) 推荐(0)
摘要: 根本原因: org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置问题:未命名的bean定义既没有指定“class”也没有指定“parent”也没有指定“factory-bean”——无法生成bean名称 阅读全文
posted @ 2021-07-22 17:23 行之星 阅读(4188) 评论(0) 推荐(1)