mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 23 - Merge K Sorted Linked Lists

Posted on 2017-09-13 | In Algorithm , LeetCode
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. ExampleInput:[ 1->4->5, 1->3->4, 2-& ...
Read more »

[LeetCode] Problem 24 - Swap Nodes in Pairs

Posted on 2017-09-13 | In Algorithm , LeetCode
Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list, only nodes itself can be changed. E ...
Read more »

[LeetCode] Problem 2 - Add Two Numbers

Posted on 2017-09-13 | In Algorithm , LeetCode
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 contai ...
Read more »

[LeetCode] Problem 21 - Merge Two Sorted Lists

Posted on 2017-09-13 | In Algorithm , LeetCode
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. ExampleI ...
Read more »

[LeetCode] Problem 9 - Palindrome Number

Posted on 2017-09-12 | In Algorithm , LeetCode
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. ExampleNo.1Input: 121 Output: tru ...
Read more »

[LeetCode] Problem 66 - Plus One

Posted on 2017-09-12 | In Algorithm , LeetCode
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. The digits are stored such that the most significant ...
Read more »

[LeetCode] Problem 7 - Reverse Integer

Posted on 2017-09-12 | In Algorithm , LeetCode
Given a 32-bit signed integer, reverse digits of an integer. ExampleNo.1Input: 123 Output: 321 No.2Input: -123 Output: -321 No.3Input: 120 Output: 21 ...
Read more »

[LeetCode] Problem 5 - Longest Palindromic Substring

Posted on 2017-09-12 | In Algorithm , LeetCode
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. ExampleNo.1Input: “babad” Output: ...
Read more »

[LeetCode] Problem 3 - Longest Substring Without Repeating Characters

Posted on 2017-09-12 | In Algorithm , LeetCode
Given a string, find the length of the longest substring without repeating characters. ExampleNo.1Input: “abcabcbb” Output: 3 Explanation: The answer ...
Read more »

[LeetCode] Problem 65 - Valid Number

Posted on 2017-09-12 | In Algorithm , LeetCode
Validate if a given string is numeric. Example“0” => true“ 0.1 “ => true“abc” => false“1 a” => false“2e10” => true“ -90e3 “ => tru ...
Read more »
1…697071…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces