自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 资源 (4)
  • 收藏
  • 关注

转载 Java/206. Reverse Linked List 反转链表

题目   代码部分一(0ms 100% 迭代)class Solution { public ListNode reverseList(ListNode head) { if(head == null || head.next == null) return head; ListNode node, temp;...

2018-10-22 19:24:10 742

转载 Java/237. Delete Node in a Linked List 删除链表中的节点

题目   代码部分(0ms  100%)class Solution { public void deleteNode(ListNode node) { node.val = node.next.val; node.next = node.next.next; }} 

2018-10-22 19:18:37 777

转载 Java/70. Chimbing Stairs 爬楼梯

题目  代码部分一(4ms 27.36%)class Solution { public int climbStairs(int n) { int i = 1, j = 1; while(n > 1){ i += j; j = i - j; n--; ...

2018-10-19 18:07:49 733

转载 Java/26. Remove Duplicates from Storted Array 删除排序数组的重复项

题目、   代码部分(10ms 97.32%)class Solution { public int removeDuplicates(int[] nums) { int n = 0; boolean flag = false; for(int i = 0; i < nums.length; i++...

2018-10-19 17:58:27 543

转载 Java/14. Longest Common Prefix 最长公共长缀

题目   代码部分一(11ms 66.23%)class Solution { public String longestCommonPrefix(String[] strs) { if(strs.length == 0 || strs == null) return ""; boolean flag = true; ...

2018-10-19 17:50:05 496

转载 Java/53.Maximum Subarray 最大子序和

题目   代码部分一(11ms 98.26%)class Solution { public int maxSubArray(int[] nums) { int sum = 0, hsum = 0, res = Integer.MIN_VALUE; for(int l = 0; l < nums.length; l++){...

2018-10-19 17:45:17 750

转载 Java/88. Merge Sorted Arrays 合并两个有序数组

题目   代码部分一(4ms 99.41%)class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { for(int i = m; i < m + n; i++){ nums1[i] = nums2[i - m]; ...

2018-10-19 17:39:14 688

转载 MySQL/182. Duplicate Email 寻找重复的邮箱

题目 代码部分一SELECT Email from Person group by Email having count(Email)>1 

2018-10-13 13:18:10 939

转载 MySQL/620. Not Boring Movies 有趣的电影

题目、   代码部分一(226ms 89.61%)SELECT id,movie,description,rating FROM cinema WHERE id%2!=0 AND description!='boring' ORDER BY rating DESC  代码部分二(1184ms 94.5...

2018-10-13 12:18:55 719

转载 MySQL/627. Swap Salary 交换工资

题目   代码部分UPDATE salary SET sex=IF(sex='f','m','f'); 

2018-10-13 12:06:11 714

转载 MySQL/595. Big Contries 大的国家

题目   代码部分一(4407ms)SELECT name,population,area FROM world WHERE area>3000000UNION SELECT name,population,area FROM world WHERE population>25000000;...

2018-10-13 11:53:55 637

转载 MySQL/175. Combine Two Tables 组合两个表

题目   代码部分一(260ms 89.84%)# Write your MySQL query statement belowSELECT p.FirstName,p.LastName,a.City,a.State FROM Person p LEFT JOIN Address a ON p.PersonId = a.PersonId ...

2018-10-13 11:21:20 944

转载 Java/447. Number of Boomerangs 回旋镖的数量

题目   代码部分(148ms 89.76%)class Solution { public int numberOfBoomerangs(int[][] points) { int result = 0; int dis = 0; int freq = 0; int tempRes = 0; ...

2018-10-12 23:10:23 912

转载 Java/706. Design HashMap 设计哈希映射

题目   代码部分一(138ms 79.22%)class MyHashMap { private final int BLOCK = 1000005; int[] nums; boolean[] map; /** Initialize your data structure here. */ public MyHas...

2018-10-12 22:51:52 1276

转载 Java/705. Design HashSet 设计哈希集合

题目   代码部分一(150ms 48.40%)class MyHashSet { /** Initialize your data structure here. */ int[] map = new int[1000005]; public MyHashSet() { } public void...

2018-10-12 22:39:43 972

转载 Java/811. Subdomain Vist Count 子域名访问计数

题目   代码部分一(23ms 89.75%)class Solution { public List<String> subdomainVisits(String[] cpdomains) { List<String> res = new ArrayList<>(); Map<...

2018-10-12 22:31:21 637

转载 Java/219. Contains Diplicate II 存在重复元素 II

题目   代码部分一(1113ms 2.25%)class Solution { public boolean containsNearbyDuplicate(int[] nums, int k) { if(k < 0) return false; for(int i = 0; i < nums.l...

2018-10-09 21:23:11 668

转载 Java/594. Longest Harmonious Subsequence 最长和谐子序列

题目代码部分一(73ms 34.54%)class Solution { public int findLHS(int[] nums) { if(nums == null || nums.length == 0) return 0; int res = 0; int cur = 0, ne...

2018-10-09 21:13:33 638

转载 Java/290. Word Pattern 单词模式

题目  代码部分一(1ms 89.86%)class Solution { public boolean wordPattern(String pattern, String str) { char[] ch = pattern.toCharArray(); if(ch.length == 0 || str.length() == ...

2018-10-08 23:40:16 655

转载 Java/599. Minimum Index Sum of Two Lists 两个列表的最小索引总和

题目   代码部分一(26ms 55.61%)class Solution { public String[] findRestaurant(String[] list1, String[] list2) { int len1 = list1.length; int len2 = list2.length; if...

2018-10-08 21:21:57 761

转载 Java/918. Maximun Sum Circular subarray 环形数子数组的最大和

题目   代码部分一(22ms)class Solution { public int maxSubarraySumCircular(int[] A) { int[] max = new int[A.length]; Arrays.fill(max, Integer.MIN_VALUE); ...

2018-10-07 17:11:10 1013

转载 Java/971. Reverse Only Letter 仅仅反转字母

题目   代码部分一(15ms)class Solution { public String reverseOnlyLetters(String S) { int n = 0; String res = ""; Map<Integer, String> map = new HashMap<>(...

2018-10-07 15:53:36 856

转载 Java/204. Count Primes 计数质数

题目   代码部分一(246ms, 15.70%)class Solution { public int countPrimes(int n) { if(n < 2) return 0; int res = 0; for(int i = 2; i < n; i++){ res ...

2018-10-02 23:25:04 658

转载 Java/645. Set Mismatch 错误的集合

题目   代码部分一(6ms 100%)class Solution { public int[] findErrorNums(int[] nums) { int[] res = new int[2]; int[] index = new int[nums.length + 1]; for(int i = 0; ...

2018-10-01 23:33:57 648

转载 Java/350. Intersection of Two Arrays II 两个数组的交集 II

题目   代码部分一(4ms 85.80%)class Solution { public int[] intersect(int[] nums1, int[] nums2) { List<Integer> list = new ArrayList<>(); Map<Integer, Integer...

2018-10-01 23:17:48 764

转载 Java/387. First Unique Character in a String 字符串中第一个唯一字符

题目代码部分一(10ms 95.56%)class Solution { public int firstUniqChar(String s) { char[] ch = s.toCharArray(); int[] map = new int[256]; int res = -1; ...

2018-10-01 23:16:26 814

一个漂亮的用户注册(用户登录)页面 动态效果(与本人博文对应)

没想到还有因为更新导致的出错,避免以后又因为csdn更新导致代码出错,我在这里放一份资源吧。积分啥不用啦,大家自取。

2020-03-03

博客:暗系色调网站主页

本账号博客下:一个漂亮的暗色系网站主页,完整代码。

2018-09-11

软件设计师历年真题(各科目分类题目汇总)

软件设计师历年真题(各科目分类题目汇总)将上午题(选择题)进行分类,如数据结构,网络安全,操作系统,多媒体,软件工程等。

2018-09-07

Struts2+Spring+Hibernate+Apache(基本开发完全满足)完整依赖包

之前想下载找了好久才找齐,为了节省大家的时间,打包发上来。从各个官网下载的最新版SSH(Spring+Struts2+Hibernate),框架的依赖包,Apache的基本开发包。如果你只是进行基本开发,完全够用,只要1分(没有免费没办法)

2018-08-29

空空如也

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

TA关注的人

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