lllllll_sssss
码龄8年
关注
提问 私信
  • 博客:2,500
    2,500
    总访问量
  • 7
    原创
  • 2,286,594
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2017-03-16
博客简介:

m0_37940740的博客

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得0次评论
  • 获得1次收藏
创作历程
  • 7篇
    2021年
成就勋章
TA的专栏
  • 数学
  • Spring
  • 刷题
    6篇
创作活动更多

超级创作者激励计划

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

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

LeetCode--38.外观数列

题目题解1、for循环检查public static String countAndSay2(int n) { if(n==1){ return "1"; } StringBuffer ans = new StringBuffer("1"); StringBuffer temp = new StringBuffer(); for(int i=1;i<n;i++){ ..
原创
发布博客 2021.10.15 ·
113 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--069.山峰数组的顶部

题目题解//for循环实现 public static int peakIndexInMountainArrayFor(int[] arr) { int max = 0; int index = 0; for(int i=0;i<arr.length;i++){ if(max <= arr[i]){//只需要遍历到最大值即可 max = arr[i];
原创
发布博客 2021.10.14 ·
622 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--069.山峰数组的顶部

题目题解//for循环实现 public static int peakIndexInMountainArrayFor(int[] arr) { int max = 0; int index = 0; for(int i=0;i<arr.length;i++){ if(max <= arr[i]){//只需要遍历到最大值即可 max = arr[i];
原创
发布博客 2021.10.14 ·
622 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--11.盛最多水的容器

题目题解 //两个for循环进行计算,时间复杂度高(On^2),无法提交,计算超时。 private static int maxAreaFor(int[] height) { int maxArea = 0; for(int i=0;i<height.length;i++){ for(int k=i+1;k<height.length;k++){ int temp = (k-i)*Ma
原创
发布博客 2021.10.13 ·
85 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--175.组合两个表

题目题解tijia//查询所有用户的地址信息,使用左链接select p.FirstName, p.LastName, a.City, a.Statefrom Person p left join Address a on p.PersonId = a.PersonId提交结果
原创
发布博客 2021.10.13 ·
83 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--412.fizz-buzz

题目题解class Solution { public List<String> fizzBuzz(int n) { List<String> list = new ArrayList<String>(); for(int i=1;i<=n;i++){ if(i%15 == 0){ //公倍数 list.add("FizzBuzz");
原创
发布博客 2021.10.13 ·
105 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode--29.两数相除

题目解题方案1、采用直接想减的方式进行处理//直接相减,在leetCde中无法提交,提示超时 public static int divide(int dividend, int divisor){ int quotient = 0; boolean postiveNumber = true; if((dividend>0 && divisor<0) || (dividend<0 &&
原创
发布博客 2021.10.12 ·
106 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

IDEA中javaWeb项目,.java文件修改后无法编译.class文件

开发过程中,遇到java文件修改后,idea无法编译成class文件到/out/artifacts/目录下。build项目和recompiler文件都不行。源文件中添加这样一段代码,在class文件中一直无法编译出来。解决方案: 需要从新建一个atrifacts部署到tomcat下,文件能够正常编译。...
原创
发布博客 2021.09.26 ·
1386 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏