原创 leetcode刷題-136.Single Number

Given a non-empty array of integers, every element appears twice except for one. Find that single one. Example 1:

原创 python爬蟲selenium (三)

selenium基本操作 圖片來自@huilai_same selenium初體驗 from selenium import webdriver browser = webdriver.Chrome() browser.get

原创 python爬蟲(四)——模擬登錄丁香園

實戰 實戰小項目:模擬登錄丁香園,抓取論壇頁面人員基本信息與回覆帖子。丁香園論壇:http://www.dxy.cn/bbs/thread/626626#626626 思路 首先把登陸方式由掃碼切換爲賬號密碼登陸 js1 =

原创 python爬蟲(一)

get與post 印象中get是請求數據,post是提交數據,然後博主在網上查了這個問題,一些比較深入的原理性的解釋並沒有看懂,所以下面放的是w3school給的二者之間的差別,日後真正需要理解原理再看原理 1.get /test

原创 leetcode刷題-78.Subsets

Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must n

原创 leetcode刷題-104.Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from

原创 leetcode刷題-169.Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊

原创 leetcode刷題-231.Power of Two

Given an integer, write a function to determine if it is a power of two. Example 1: Input: 1 Output: true Explan

原创 伯克利CS61A-Sum2019-Week1

CS61A被公認爲伯克利的一門神課,主講語言爲python,學透徹編程能力會有質的飛躍(個人觀點),課程中的所有lab,hw,pro都可以下載練習,課程體驗很棒~博主19年寒假的時候學習了一部分,準備利用暑假時間整理+學習 課程網

原创 leetcode刷題-23.Merge K Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Input: [ 1->4

原创 leetcode刷題-148. Sort List

Sort a linked list in O(n log n) time using constant space complexity. Input: 4->2->1->3 Output: 1->2->3->4 Input: