• 等级
  • 4675 访问
  • 32 原创
  • 7 转发
  • 238394 排名
  • 31 评论
  • 5 获赞

LeetCode--Longest Common Prefix

Longest Common Prefix 题目 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: ["flowe...

2018-09-24 21:08:58

LeetCode--Integer to Roman

Integer to Roman 1. 题目 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C ...

2018-09-23 23:16:13

LeetCode--Roman to Integer

Roman to Integer 1. 题目 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C ...

2018-09-23 21:22:49

LeetCode--Clone Graph

Clone Graph 1. 题目 Given the head of a graph, return a deep copy (clone) of the graph. Each node in the graph contains a label (int) and a list (List[UndirectedGraphNode]) of its neighbors. There is ...

2018-09-23 20:03:36

LeetCode--String to Integer (atoi)

String to Integer (atoi) 1 题目 Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character i...

2018-09-22 10:42:26

算法分析与设计第三周练习(图论)

目录 Evaluate Division Reconstruct Itinerary 总结 Evaluate Division 1. 题目 Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (flo...

2018-09-21 23:07:40

LeetCode--Reverse Integer

Reverse Integer 题目 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 No...

2018-09-16 23:39:02

LeetCode--ZigZag Conversion

ZigZag Conversion 题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P ...

2018-09-16 21:36:49

LeetCode--Search a 2D Matrix II(分治策略)

Search a 2D Matrix II 题目 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left ...

2018-09-15 14:30:52

LeetCode--Merge k Sorted Lists--分治策略

Merge k Sorted Lists--分治策略 题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example Input: [ 1->4->5, 1->3->4, 2->6 ] Out...

2018-09-14 23:26:37

算法设计与分析第二周练习

目录 Course Schedule(拓扑) Kth Largest Element in an Array(分治算法) Kth Largest Element in an Array 题目 Find the kth largest element in an unsorted array. Note that it is the kth largest element in the s...

2018-09-14 18:50:27

LeetCode--Median of Two Sorted Arrays

Median of Two Sorted Arrays 题目 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m...

2018-09-10 16:32:39

LeetCode--Longest Substring Without Repeating Characters

Longest Substring Without Repeating Characters 题目 Given a string, find the length of the longest substring without repeating characters. Example Input: "abcabcbb" Output: 3 Explanation: The ans...

2018-09-10 10:56:08

LeetCode--Add Two Numbers

Add Two Numbers 题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two...

2018-09-08 14:02:46

LeetCode--Two Sum

Two Sum 题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not ...

2018-09-08 10:57:29

LeetCode--3Sum Closest

3Sum Closest 题目 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume th...

2018-09-07 20:18:36

实训总结

实训总结   为期一个月的软件工程中级实训就要结束了,实训期间真的感觉了这个学期前所未有的压迫感,所有的作业都必须在星期一到星期五完成,除此之外,有时候还需要在平时提前开始搞,所以给人的压迫感是很强的。虽然说我们大一就已经进行过初级实训了,但这次实训最大的不同是我们用的是我们没学过的东西,包括语言和工具等,所以这也是一种挑战。   一开始我是有点怕的,怕自己没有接触过java这门语言,然后实训...

2018-09-07 00:07:47

算法设计与分析第一周练习

题目 Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find t...

2018-09-07 00:01:37

java教程

作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明。谢谢!      Java是面向对象语言。这门语言其实相当年轻,于1995年才出现,由Sun公司出品。James Gosling领导了Java的项目小组。该项目的...

2018-07-28 09:24:07

测试结果图片

2018-04-22 11:44:56

VilinPlus

关注
  • 计算机软件/学生
  • 中国 广东省 广州市
奖章
  • 持之以恒