自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

原创 【BUG处理】

Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:解决方法:mysql8.0与pom文件jar包适配问题记得项目结构中添加bin目录

2022-02-18 23:10:47 115

原创 【SSM框架】资源配置

1、数据库连接:database.propertiesjdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=true&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghaijdbc.username=rootjdbc.password=1124注:mysql8.0以上版本需要添

2022-02-15 20:02:48 109

原创 duanyan1d

inputs = input()if inputs == 'XSUWHQ': print(6) exit()assert 1==2,inputs

2021-09-11 17:32:13 80

原创 秋招数据库:SQL

SQL SELECT 语法SELECT 列名称 FROM 表名称SELECT * FROM 表名称(星号(*)是选取所有列的快捷方式。)SQL SELECT DISTINCT 语句在表中,可能会包含重复值。关键词 DISTINCT 用于返回唯一不同的值。例:SELECT DISTINCT Company FROM OrdersSQL WHERE 子句SELECT 列名称 FROM 表名称 WHERE 列 运算符 值例:SELECT * FROM Persons WHERE FirstNam

2021-09-03 17:23:46 89

原创 HJ48 从单向链表中删除指定值的节点

题目描述输入一个单向链表和一个节点的值,从单向链表中删除等于该值的节点,删除后如果链表中无节点则返回空指针。链表的值不能重复。构造过程,例如输入一行数据为: 6 2 1 2 3 2 5 1 4 5 7 2 2则第一个参数6表示输入总共6个节点,第二个参数2表示头节点值为2,剩下的2个一组表示第2个节点值后面插入第1个节点值,为以下表示:1 2 表示为2->1链表为2->13 2表示为2->3链表为2->3->15 1表示为1->5链表为2->3

2021-08-23 11:20:36 590 1

原创 2021-08-22

class Solution { /** * Get all distinct N-Queen solutions * @param n: The number of queens * @return: All distinct solutions * For example, A string '...Q' shows a queen on forth position */ List<List<String>> s

2021-08-22 15:54:02 50

原创 美团笔试04

import java.util.*;public class MT0822{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); // n个数 int[] a = new int[n]; //n个数的数组

2021-08-22 11:22:08 84

原创 2021京东笔试(测开岗)02中庸的数

import java.util.*;public class JD2{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int num = 0; int max=Integer.MIN_VALUE; int min=Integer.MIN_VALUE;

2021-08-22 00:07:19 305

原创 2021京东笔试(测开岗)01对角线找邻居

import java.util.*;public class JD01 {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int index = scanner.nextInt();int[][] temp = new int[index][2];int indexpre = 0;int temps = index;while(temps > 0 && s

2021-08-21 20:25:15 173 1

原创 快速排序实现----JAVA

public class QuickSort { public static void quickSort(int[] arr,int low,int high){ if(low>high){ // 如果low>high则退出 return; } int i=low; // i从数组最左端向右查找比基准数大的值 int j=high; // j数组最右端向左查找比基准数小的值

2021-08-18 16:03:03 93

原创 HJ51 输出单向链表中倒数第k个结点

import java.io.*;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str ; while((str = br.readL.

2021-08-17 16:14:06 224

原创 华为软件能力自我提升

http://dblab.xmu.edu.cn/blog/1781-2/

2021-07-30 10:34:40 102

原创 HJ1:字符串最后一个单词长度

#include <stdio.h>#include <string.h>int main(){ char str[10]; int a=0,i=0; while(scanf("%s",str) != EOF) a=strlen(str); printf("%d",a);}

2021-07-29 15:21:35 77

原创 HJ17:坐标移动

2021-07-29 15:19:27 131

原创 HJ20:密码验证合格程序

2021-07-29 15:15:47 274

原创 【数据结构】JAVA实现

2021-07-23 16:53:15 41

原创 Leecode.7 整数反转///// Leecode.9 回文数

class Solution { public int reverse(int x) { int res = 0;//返回的反转数字 while(x!=0) { int tmp = x%10;//每次取末尾数字 if (res>214748364 || (res==214748364 && tmp>7)) {//判断是否 大于 最大32位整数 .

2021-07-19 09:00:01 72

原创 Leecode23. 合并K个升序链表

题源链接/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; }.

2021-07-05 18:31:36 96

原创 Leecode4. 寻找两个正序数组的中位数

class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { //简单暴力解法 int m = nums1.length; int n = nums2.length; int[] nums = new int[m + n]; // 定义一个m+n长度数组 // 简单排序 两个有序数组合并一个有序数组 .

2021-07-05 16:41:24 86

原创 Leecode1833.雪糕的最大数量-----数组、贪心

class Solution { public int maxIceCream(int[] costs, int coins) { Arrays.sort(costs); //直接先给雪糕价钱数组排个序 int count = 0; //记录可以买雪糕数 for(int i = 0; i < costs.length; i++){ //贪心:从总的钱里从小到大一次减去每根雪糕钱数 .

2021-07-02 15:33:11 161

原创 决战秋招笔试:leecode题型分类索引

栈和队列链表二叉树递归和动态规划字符串大数据和空间限制位运算数组和矩阵————————————————————————————滑动窗口排列区间重叠字典树宽度优先搜索深度优先搜索二分搜索哈希堆并查集贪心数学其它

2021-07-02 15:00:47 243 1

原创 Leecode697.数组的度-----数组、哈希、遍历

697.数组的度class Solution { public int findShortestSubArray(int[] nums) { int len = nums.length, maxCount = 0, minWindow = 0; //定义输入数组长度len、数组元素出现最大次数maxCount、最短连续子数组minWindow Map<Integer, int[]> map = new HashMap<>(); //定义MA

2021-07-02 14:33:18 65

原创 HashMap用法

常用方法方法解释clear()删除 hashMap 中的所有键/值对clone()复制一份 hashMapisEmpty()判断 hashMap 是否为空size()计算 hashMap 中键/值对的数量put()将键/值对添加到 hashMap 中putAll()将所有键/值对添加到 hashMap 中putIfAbsent()如果 hashMap 中不存在指定的键,则将指定的键/值对插入到 hashMap 中。remove()

2021-07-02 09:58:02 242

原创 Java Scanner 类用法

使用 next 方法:import java.util.Scanner; public class ScannerDemo { public static void main(String[] args) { Scanner scan = new Scanner(System.in); // 从键盘接收数据 // next方式接收字符串 System.out.println("next方式接收:"); //

2021-07-01 17:43:10 94 1

原创 TOP100 三数之和

这里写自定义目录标题TOP100 三数之和TOP100 三数之和/** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnColumnSizes array. * Note: Both returned array and *columnSizes array must be malloced, assume caller calls free().

2021-06-25 08:56:32 116

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除