自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Palindrome Linked List

题目Given a singly linked list, determine if it is a palindrome.Example 1:Input: 1->2Output: falseExample 2:Input: 1->2->2->1Output: true总结思路:这题的关键是找到链表的中间节点(medium)用slow和fast两个指...

2018-09-22 19:47:18 120

原创 Reverse Linked List

题目Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULL总结思路一:递归,从后往前反转代码:# Definition for singly-linked list.# class ListNo...

2018-09-21 14:26:09 110

原创 Isomorphic Strings

题目Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be replaced with anot...

2018-09-14 10:46:27 115

原创 Count Primes

题目Count the number of prime numbers less than a non-negative number, n.Example:Input: 10Output: 4Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.总结思路一:判断每一个数是不...

2018-09-13 00:09:40 101

原创 Happy Number

题目Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squar...

2018-09-12 00:10:28 306

原创 Factorial Trailing Zeroes

题目Given an integer n, return the number of trailing zeroes in n!.Example 1:Input: 3Output: 0Explanation: 3! = 6, no trailing zero.Example 2:Input: 5Output: 1Explanation: 5! = 120, one tra...

2018-09-08 21:04:48 121

原创 Majority Element

题目Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element ...

2018-09-07 19:27:38 112

原创 Intersection of Two Linked Lists

题目Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a1 → a2 ↘ ...

2018-09-06 14:51:12 106

原创 Linked List Cycle

题目Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?总结我的代码:public class Solution { public boolean hasCycle(ListNode head) ...

2018-09-04 22:31:05 103

原创 Pascal's Triangle II

题目Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal’s triangle.Note that the row index starts from 0. In Pascal’s triangle, each number is the sum of the two numbe...

2018-09-03 23:41:55 112

原创 Minimum Depth of Binary Tree

题目Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.Note: A leaf is a node with no chi...

2018-09-01 01:06:44 89

华为杯研究生数模竞赛2017年试题

包括2017年的全部试题,分别是: A题:无人机在抢险救灾中的优化运用 B题:面向下一代光通信的 VCSEL 激光器仿真建模 C题:航班恢复问题 D题:基于监控视频的前景目标提取 E题:多波次导弹发射中的规划问题 F题:地下物流系统的构建研究

2018-09-10

java图书馆管理系统代码+文档

java图书馆管理系统代码+文档,代码在文档后面,复制可直接运行。文档介绍很清楚,可直接使用!

2018-08-26

空空如也

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

TA关注的人

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