龍淵
码龄7年
关注
提问 私信
  • 博客:22,499
    22,499
    总访问量
  • 51
    原创
  • 2,272,164
    排名
  • 13
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2018-06-09
博客简介:

龍淵的博客

博客描述:
懒人一枚,没得描述
查看详细资料
个人成就
  • 获得22次点赞
  • 内容获得7次评论
  • 获得114次收藏
  • 代码片获得133次分享
创作历程
  • 49篇
    2022年
  • 1篇
    2019年
  • 1篇
    2018年
成就勋章
TA的专栏
  • OJ
    46篇
  • Spring
    1篇
  • 大学
    3篇
  • 练手
    4篇
兴趣领域 设置
  • 编程语言
    java
  • 大数据
    redis
  • 后端
    spring
创作活动更多

超级创作者激励计划

万元现金补贴,高额收益分成,专属VIP内容创作者流量扶持,等你加入!

去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

OJ---Z 字形变换

OJ题
原创
发布博客 2022.06.27 ·
235 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

OJ---最长公共前缀

OJ题
原创
发布博客 2022.06.21 ·
258 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---独一无二的出现次数

OJ题
原创
发布博客 2022.06.21 ·
220 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---将找到的值乘以 2

OJ---将找到的值乘以 2
原创
发布博客 2022.06.21 ·
174 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

GO学习项目---家庭收支记账软件

主菜单功能实现:func (f *FamilyAccount) MainMenu() { for { fmt.Println("-----------家庭收支记账软件-----------") fmt.Println(" 1.收支详细") fmt.Println(" 2.登记收入") fmt.Println(" 3.登记支出") fmt.Println(" 4.退 出") fmt.Print("
原创
发布博客 2022.05.23 ·
209 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

OJ---盛最多水的容器

一开始用的双for循环移动左右指针,提交超时。然后发现只需要移动高度较低的那个指针就行class Solution { public int maxArea(int[] height) { if(height.length<=1){ return 0; } if(height.length==2){ if(height[0]!=0 && height[1]!=0){
原创
发布博客 2022.05.11 ·
98 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---数据分类处理

import java.util.*;public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String one[] = in.nextLine().split(" "); String two[] = in.nextLine().split(" "); int Ln = Integer.va
原创
发布博客 2022.04.20 ·
181 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---查找组成一个偶数最接近的两个素数

import java.util.*;public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int arr[] = new int[n]; Arrays.fill(arr,1); ArrayList<Integer> lis
原创
发布博客 2022.04.20 ·
137 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---腐烂的橘子

运用广度优先搜索(BFS)class Solution { public int orangesRotting(int[][] grid) { int count=0;//记录新鲜橘子 int N = grid.length;//记录数组的行 int M = grid[0].length;//记录数组的列 Queue<int[]> queue = new LinkedList<>(); for(
原创
发布博客 2022.04.20 ·
430 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---接雨水问题

import java.util.*;public class Solution { /** * max water * @param arr int整型一维数组 the array * @return long长整型 */ public long maxWater (int[] arr) { // write code here int top = 0; int max = 0; f
原创
发布博客 2022.04.19 ·
205 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---二叉搜索树的后序遍历序列

即如果把中序序列当做栈的压入序列,那么后序序列是该栈的一个弹出序列import java.util.*;public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { int[] arr = sequence.clone(); Arrays.sort(arr); return IsPopOrder(arr,sequence); } publi
原创
发布博客 2022.04.19 ·
794 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---从上往下打印二叉树

通过队列来实现二叉树的广搜public class Solution { public ArrayList<Integer> PrintFromTopToBottom(TreeNode root) { Queue<TreeNode> queue = new LinkedList<TreeNode>(); ArrayList<Integer> arr = new ArrayList<>();
原创
发布博客 2022.04.19 ·
359 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---称砝码

import java.util.*;public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int num[] = new int[n]; int weight[] = new int[n]; for (int i = 0; i &l
原创
发布博客 2022.04.18 ·
141 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---最小覆盖子串

import java.util.*;public class Solution { /** * * @param S string字符串 * @param T string字符串 * @return string字符串 */ public String minWindow (String S, String T) { // write code here int l=0,r=0; i
原创
发布博客 2022.04.18 ·
145 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---最长回文子串

import java.util.*;public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A string字符串 * @return int整型 */ public int getLongestPalindrome (String A) { // write code here if(A
原创
发布博客 2022.04.18 ·
129 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---最长连续递增序列

记录当前连续递增序列的开始下标和结束下标,遍历数组的过程中每次比较相邻元素,根据相邻元素的大小关系决定是否需要更新连续递增序列的开始下标class Solution { public int findLengthOfLCIS(int[] nums) { int max = 0; int start = 0; if(nums.length==1){ return 1; } for(int i=0;
原创
发布博客 2022.04.18 ·
141 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---组合

class Solution { public List<List<Integer>> combine(int n, int k) { List<List<Integer>> res = new ArrayList<>(); if(k==0||n<k){ return res; } Deque<Integer> path = new A
原创
发布博客 2022.04.18 ·
82 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---有重复字符串的排列组合

class Solution { LinkedList<String> list = new LinkedList<>(); public String[] permutation(String S) { dfs(S.toCharArray(),0); return list.toArray(new String[0]); } public void dfs(char[] c,int k){ if(k==
原创
发布博客 2022.04.17 ·
119 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---括号的最大嵌套深度

import java.util.*;class Solution { public int maxDepth(String s) { int count = 0; int num = 0; for(char ch:s.toCharArray()){ if(ch=='('){ count++; }else if(ch=='['){ cou
原创
发布博客 2022.04.17 ·
131 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

OJ---有效括号序列

import java.util.*;public class Solution { /** * * @param s string字符串 * @return bool布尔型 */ public boolean isValid (String s) { // write code here if(s==null){ return false; } Stack
原创
发布博客 2022.04.16 ·
175 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多