摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="app"> <span> {{title}} </span> <input type 阅读全文
posted @ 2020-12-13 20:35 加利亚的赤色恶魔 阅读(85) 评论(0) 推荐(0)
摘要: 今天写一个JPA SpringBoot的项目 莫名其妙报了这么一个错误 百度得知: 此处的解决方法: 通常删除对应的Table重新创建即可。 原因: 通常是由于创建Table之后对Entity或者ORM做了相应的修改,导致ORM框架(Hibernate)不能正常进行数据库表或schema进行映射,因 阅读全文
posted @ 2020-12-12 19:19 加利亚的赤色恶魔 阅读(246) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public int wiggleMaxLength(int[] nums) { 3 int up = 1, down = 1; 4 if(nums.length == 0) return 0; 5 for(int i = 0; i < nums.lengt 阅读全文
posted @ 2020-12-12 14:26 加利亚的赤色恶魔 阅读(64) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public boolean lemonadeChange(int[] bills) { 3 int count5 = 0, count10 = 0; 4 if(bills[0] != 5) return false; 5 for(int i = 0; i 阅读全文
posted @ 2020-12-10 18:05 加利亚的赤色恶魔 阅读(48) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public String longestPalindrome(String s) { 3 if(s.equals("")) return ""; 4 String origin = s; 5 String reverse = new StringBuffe 阅读全文
posted @ 2020-12-08 19:10 加利亚的赤色恶魔 阅读(67) 评论(0) 推荐(0)
摘要: 1 class Solution { 2 public int matrixScore(int[][] A) { 3 int len1 = A.length, len2 = A[0].length; 4 5 for(int i = 0; i < len1; i++){ 6 if(A[i][0] == 阅读全文
posted @ 2020-12-07 18:53 加利亚的赤色恶魔 阅读(73) 评论(0) 推荐(0)
摘要: 方法一 函数库合并 毫无技术含量 不讲了 1 class Solution { 2 public double findMedianSortedArrays(int[] nums1, int[] nums2) { 3 int[] c= new int[nums1.length+nums2.lengt 阅读全文
posted @ 2020-12-06 19:12 加利亚的赤色恶魔 阅读(88) 评论(0) 推荐(0)
摘要: 好耶 今天的日常又能做咯 来个评论区老哥的骚套路 1 class Solution { 2 public List<List<Integer>> generate(int numRows) { 3 Integer[][] a= {{1}, 4 {1, 1}, 5 {1, 2, 1}, 6 {1, 3 阅读全文
posted @ 2020-12-06 18:37 加利亚的赤色恶魔 阅读(40) 评论(0) 推荐(0)
摘要: 最近两天的日常题也太难了罢 今天的抄个答案放弃了 索性从头开始复习一下1 ~ 300题好了 本人末流211本科 不想考研 大一大二学习不是很用功 现在在努力追进度 脑子不好使 大家轻喷 class Solution { public int[] twoSum(int[] nums, int targ 阅读全文
posted @ 2020-12-05 19:25 加利亚的赤色恶魔 阅读(107) 评论(0) 推荐(0)
摘要: 太难了 不会写 试试写过程分析吧 方法一 哈希表+最小堆 1 class Solution { 2 public boolean isPossible(int[] nums) { 3 Map<Integer, PriorityQueue<Integer>> map = new HashMap<Int 阅读全文
posted @ 2020-12-04 18:28 加利亚的赤色恶魔 阅读(115) 评论(0) 推荐(0)