mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

Oral English 1

Posted on 2018-02-02 | In English
I’m heading out.我准备走了。 讲解关键词head,除了熟悉的‘头’,还可以表示‘出发,前往’,例句:Where are you heading?/Where are you headed?主被动都可以。 补充口语中其他常见的表示‘我要走了’的表达:I’m leaving;I’m go ...
Read more »

[LeetCode] Problem 69 - Sqrt(x)

Posted on 2018-01-22 | In Algorithm , LeetCode
Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in ...
Read more »

[LeetCode] Problem 88 - Merge Sorted Array

Posted on 2018-01-22 | In Algorithm , LeetCode
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. NoteThe number of elements initialized in nums1 and nums2 ...
Read more »

[LeetCode] Problem 27 - Remove Element

Posted on 2018-01-15 | In Algorithm , LeetCode
Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you ...
Read more »

[LeetCode] Problem 26 - Remove Duplicates from Sorted Array

Posted on 2018-01-15 | In Algorithm , LeetCode
Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space fo ...
Read more »

Urllib Demo

Posted on 2017-12-28 | In Web Crawler
使用Urllib爬取网页将爬取到的网页以网页的形式保存在本地1234567891011121314import urllib.request# 爬取百度首页file = urllib.request.urlopen("http://www.baidu.com")# 将对应的网页内容读取出来data ...
Read more »

[LeetCode] Problem 264 - Ugly Number II

Posted on 2017-10-30 | In Algorithm , LeetCode
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Note1 is typically treated ...
Read more »

[LeetCode] Problem 263 - Ugly Number

Posted on 2017-10-30 | In Algorithm , LeetCode
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Note1 ...
Read more »

[LeetCode] Problem 202 - Happy Number

Posted on 2017-10-30 | In Algorithm , LeetCode
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 intege ...
Read more »

[LeetCode] Problem 82 - Remove Duplicates from Sorted List II

Posted on 2017-10-12 | In Algorithm , LeetCode
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. ExampleNo.1Input: 1-&g ...
Read more »
1…656667…78
mrlonelyjtr

mrlonelyjtr

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

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