算法
文章平均质量分 58
drowzju
这个作者很懒,什么都没留下…
展开
-
[编程练习][Add Two Numbers]<LeetCode-2>
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2014-12-13 09:36:51 · 513 阅读 · 0 评论 -
[编程练习][Median of Two Sorted Arrays]<LeetCode-4>
题目来自leetcode https://oj.leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall原创 2014-12-04 20:45:59 · 350 阅读 · 0 评论 -
[编程练习]ZigZag Conversion <LeetCode-6>
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 A H N A P L S I原创 2014-12-13 10:24:44 · 459 阅读 · 0 评论 -
[编程练习][Two Sum]<LeetCode-1>
太久没写程序,最近拿着leetcode 的题目开始练练手,免得生疏了。 leecode is here:https://oj.leetcode.com/problems Given an array of integers, find two numbers such that they add up to a specific target number.原创 2014-12-01 22:50:34 · 538 阅读 · 0 评论 -
[编程练习]Longest Palindromic Substring <LeetCode-5>
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 题目来自: https://原创 2014-12-13 09:42:47 · 325 阅读 · 0 评论