12 2019 档案

摘要:刷题顺序:https://cspiration.com/leetcodeClassification 题目解析:通过结果与当前值做差与剩余的数字对比,如果相等则存在俩数之和等于结果;这里选择map这种数据结构,key存值,value记录位置。 import java.util.LinkedHashM 阅读全文
posted @ 2019-12-31 14:16 小傻孩丶儿 阅读(170) 评论(0) 推荐(0) 编辑
摘要:jpa子查询 子查询 //select * from A where employeeGid in (select * from B where readerGid = 'xxxx')//子查询 fromSubquery<ReaderEmployeeRelationModel> subQuery = 阅读全文
posted @ 2019-12-30 18:02 小傻孩丶儿 阅读(466) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2019-12-30 14:41 小傻孩丶儿 编辑
摘要:body { color: #000; background: url(http://www.cnblogs.com/skins/MountainInk/top.jpg) fixed; background-size: cover; background-repeat: repeat; font-f 阅读全文
posted @ 2019-12-25 15:29 小傻孩丶儿 阅读(175) 评论(0) 推荐(0) 编辑
摘要:二刷对一些常见的算法有了一些系统性的认识,对于算法的时间复杂度以及效率有了优化的意识,对于简单题和中等题目不再畏惧。三刷加油 阅读全文
posted @ 2019-12-24 13:45 小傻孩丶儿 阅读(178) 评论(0) 推荐(0) 编辑
摘要:洗牌算法题目 import java.util.Random;/** * Shuffle a set of numbers without duplicates. * * Example: * * // Init an array with set 1, 2, and 3. int[] nums = 阅读全文
posted @ 2019-12-23 16:46 小傻孩丶儿 阅读(459) 评论(0) 推荐(0) 编辑
摘要:Bit Manipulation Find the Difference /* * Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling  阅读全文
posted @ 2019-12-20 15:37 小傻孩丶儿 阅读(240) 评论(0) 推荐(0) 编辑
摘要:C语言中<<、>>、&、|的实际用途 作为一个开发人员,在看别人项目或者看第三方库的源代码时,可能经常会看到譬如a>>4&0x0f这样的写法,对于一些初入行的童鞋来说可能就不是太明白这是什么意思。下面我们就来讲解这几个运算符的实际用途。 一、运算符的含义 运算符含义描述 << 左移 用来将一个数的各 阅读全文
posted @ 2019-12-20 13:46 小傻孩丶儿 阅读(1212) 评论(0) 推荐(0) 编辑
摘要:备胎算法 假设有三男(分别是 A ,B ,C )和三女(分别是 x,y ,z ),他(她)们对异性的心仪程度如对话框所示。 比如对于男 A 来说,心仪对象排名为 x 排第一,y 排第二,z 排第三。 今天是特殊节日,你化身为丘比特,来设计一个算法分配对象。 立即接受算法 下面以男生主动追求对象为例来 阅读全文
posted @ 2019-12-20 13:04 小傻孩丶儿 阅读(151) 评论(0) 推荐(0) 编辑
摘要:Archunit的使用 注:开发的编辑器: Intellij Idea,JDK版本是JDK8 Archunit是什么,官网的英文介绍很好,建议阅读原文,"ArchUnit is a free, simple and extensible library for checking the archit 阅读全文
posted @ 2019-12-20 08:59 小傻孩丶儿 阅读(899) 评论(0) 推荐(0) 编辑
摘要:二分查找-leetcode /** * * 278. First Bad Version * * You are a product manager and currently leading a team to develop a new * product. Unfortunately, the 阅读全文
posted @ 2019-12-19 16:51 小傻孩丶儿 阅读(279) 评论(0) 推荐(0) 编辑
摘要:由异常:Repeated column in mapping for entity/should be mapped with insert="false" update="false 引发对jpa关联的思考 首先说一下以上问题的解决方法 //主键列 显示指定只读 --这块是解决该文的代码@Colu 阅读全文
posted @ 2019-12-18 15:47 小傻孩丶儿 阅读(1361) 评论(0) 推荐(0) 编辑
摘要:20191217-关于JPA @Query查询数据一直为空,直接在数据库里执行SQL则可以查出来 前提:数据库中查询,由于在视图中无主键概念,只是在代码中由逻辑主键。结果:数据中作为逻辑主键中有个字段为空,导致结果集赋值到实体出错,结果集为null 阅读全文
posted @ 2019-12-17 16:13 小傻孩丶儿 阅读(2573) 评论(0) 推荐(0) 编辑
摘要:--都是之前各位大佬总结好的,我只是肤浅的汇总一下,结合我犯得错误,适合像我一样的萌新看 第一:@Transcation 引入的注解 package org.springframework.transaction.annotation; 首先说一下这个注解生效的条件: 第一:如果在方法上,该方法为公 阅读全文
posted @ 2019-12-12 13:43 小傻孩丶儿 阅读(244) 评论(0) 推荐(0) 编辑
摘要:参考文章 https://blog.csdn.net/u013309870/article/details/75193592https://blog.csdn.net/baidu_28312631/article/details/47418773 动态规划 凡是可以大事化小的都可以用动态规划一般解题 阅读全文
posted @ 2019-12-12 11:21 小傻孩丶儿 阅读(263) 评论(0) 推荐(0) 编辑
摘要:1:mysql b/b+tree的结构 索引的类型 索引的使用 2:看算法视频 总结文章 3:线程相关知识 4:jdk尝见的问题 阅读全文
posted @ 2019-12-10 17:10 小傻孩丶儿 阅读(103) 评论(0) 推荐(0) 编辑
摘要:Reverse Integer /** * Given a 32-bit signed integer, reverse digits of an integer. * */public class Lc7 { public static int reverse(int x) { boolean n 阅读全文
posted @ 2019-12-10 15:27 小傻孩丶儿 阅读(245) 评论(0) 推荐(0) 编辑
摘要:树以及常用的算法 树的概念 树(Tree)的基本概念树是由结点或顶点和边组成的(可能是非线性的)且不存在着任何环的一种数据结构。没有结点的树称为空(null或empty)树。一棵非空的树包括一个根结点,还(很可能)有多个附加结点,所有结点构成一个多级分层结构。 二叉树的概念 每个结点至多拥有两棵子树 阅读全文
posted @ 2019-12-09 17:10 小傻孩丶儿 阅读(345) 评论(0) 推荐(0) 编辑
摘要:Insert Into select 与 Select Into 哪个更快? 1在平常数据库操作的时候,我们有时候会遇到表之间数据复制的情况,可能会用到INSERT INTO SELECT 或者 SELECT INTO ;23那么二者语法上有什么区别?性能上又如何呢?45围绕着这两个问题,今天就来总 阅读全文
posted @ 2019-12-04 17:07 小傻孩丶儿 阅读(19036) 评论(5) 推荐(2) 编辑
摘要:oracle 查询数据一直提示:“error code [17004]; 无效的列类型”111111 问题场景:oracle,jpa,insert原因:插入的字段中有null.导致类型转换出问题,这个与表结构中非空无关= 阅读全文
posted @ 2019-12-04 12:58 小傻孩丶儿 阅读(2983) 评论(0) 推荐(0) 编辑
摘要:页面css /*生成博客目录的CSS*/#uprightsideBar{ font-size:12px; font-family:Arial, Helvetica, sans-serif; text-align:left; position:fixed;/*将div的位置固定到距离top:50px, 阅读全文
posted @ 2019-12-03 10:07 小傻孩丶儿 阅读(241) 评论(0) 推荐(0) 编辑
摘要:leetcode-数组篇 个人理解:算法,涉及到数据结构和解决问题思想的,以及常用的解决方法,数据结构:无非就是数组,链表,树,图等等思想:dp,贪心等等方法:排序,搜索等等本篇主要介绍: 排序 借助leetcode的215题介绍六种常见好理解的排序思想 import java.util.Array 阅读全文
posted @ 2019-12-02 16:21 小傻孩丶儿 阅读(390) 评论(0) 推荐(0) 编辑
摘要:Remove Element public class Lc27 { public static int removeElement(int[] nums, int val) { if (nums == null || nums.length == 0) { return 0; } int coun 阅读全文
posted @ 2019-12-02 16:03 小傻孩丶儿 阅读(236) 评论(0) 推荐(0) 编辑
摘要:Implement strStr() /** * Implement strStr(). * * Return the index of the first occurrence of needle in haystack, or -1 if * needle is not part of hays 阅读全文
posted @ 2019-12-02 16:02 小傻孩丶儿 阅读(243) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示