Cogitates' Notes

Stay hungry,stay folish.


  • Home

  • Archives

  • Tags

Python中几个疑惑

Posted on 2019-06-23

->的作用

1
2
3
4
sync def fetch(self, url: str, keys: object, repeat: int) -> (int, object:
dosomething()
return None
#-> 就是为了告诉用户具体函数参数和参数的类型
Read more »

Beatles的两首歌词

Posted on 2019-06-18 | Edited on 2019-06-20

披头士两首歌的歌词,写的真好

Yesterday

Songwriter: Lennon–McCartney
Album: Help!

Read more »

几道Leetcode上面的数组题目

Posted on 2019-05-29 | Edited on 2019-05-30

Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.

思路

标记原有数组,j标记新数组
i,j分别是快,慢指针

Read more »

关于博客名字由来的这件事

Posted on 2019-04-29 | Edited on 2019-04-30

只要一个人明确地,诚挚地针对任何一个主题反思,那么这个人就必然可以和他周围的浮泛思想区隔开来。任何知性上的努力,都可以带我们脱离庸俗,它将引领我们穿越艰辛且隐蔽的道路,到达与世隔绝的境地。在那里,我们将发现自己浸淫在无数非凡的想法之中。这就是反思能够带给我们的结果。

José Ortega y Gasset

Read more »
12
Cogitates

Cogitates

Personal Blog
14 posts
17 tags
GitHub Gmail E-Mail Netease music
© 2019 Cogitates
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v7.1.1