自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 update语句执行卡死现象原因及解决方案

原因分析:  可能在PLSQL Developer执行update时没有commit,oracle将该条记录锁住了。解决方案:--查询锁定记录 SELECT s.sid,s.serial# FROM v$locked_object lo,dba_objects ao, v$session s WHERE ao.object_id = lo.object_id AND lo.sess...

2020-04-14 16:29:27 2023

原创 斗地主发牌的java代码

import java.util.*;public class Test02 { public static void main(String[] args) { Map<Integer,String> poker = new HashMap<>(); List<Integer> pokerIndex = new A...

2020-03-12 22:16:46 305

原创 The K Weakest Rows in a Matrix

Given am* nmatrixmatofones(representing soldiers) andzeros(representing civilians), return the indexes of thekweakest rows in the matrix ordered from the weakest to the strongest.A rowi...

2020-02-07 19:03:19 202

原创 电话号码的字母组合

给定一个仅包含数字2-9的字符串,返回所有它能表示的字母组合。给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。class Solution { String[] numPad = new String[]{"abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; public List<St...

2020-01-03 15:01:55 148

原创 判断括号是否有效

给定一个只包括 ‘(’,’)’,’{’,’}’,’[’,’]’ 的字符串,判断字符串是否有效。有效字符串需满足:左括号必须用相同类型的右括号闭合。左括号必须以正确的顺序闭合。注意空字符串可被认为是有效字符串。import java.util.HashMap;import java.util.Map;import java.util.Stack;public clas...

2020-01-03 14:48:54 306

原创 二分查找的递归与非递归算法

public class Test01 { public static void main(String[] args) { int[] arr = {1,4,7,9,11,13,17,20,22,33,45,4345,2342323,324233223}; int target = 45; binSearch(arr,target,0,arr.length-1); Syst...

2020-01-03 14:23:25 92

原创 输出某年某月有几天

import java.util.Scanner;public class Test01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int year = sc.nextInt(); int month = sc.nextInt(); int days = 0; switc...

2018-06-28 14:49:04 507

原创 每隔一秒输出当前时间的java代码

import java.text.SimpleDateFormat;import java.util.Date;public class DisplayTime { public static void main(String[] args) { Thread thread = new Thread(){ public void run(){ SimpleDateFormat sdf ...

2018-06-28 14:46:06 6236

原创 计算1900-01-01到2018-01-01的天数

方法一:import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;public class Demo01 { public static void main(String[] args) throws ParseException { SimpleDateFormat sdf =...

2018-06-28 14:40:44 1198

空空如也

空空如也

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

TA关注的人

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