原创 [LeetCode 6.16] Validate IP Address

Validate IP Address Write a function to check whether an input string is a valid IPv4 address or IPv6 address or ne

原创 [LeetCode 6.17] Surrounded Regions

Surrounded Regions Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’. A

原创 [LeetCode 6.14] Cheapest Flights Within K Stops

Cheapest Flights Within K Stops There are n cities connected by m flights. Each flight starts from city u and arriv

原创 [LeetCode 6.15] Search in a Binary Search Tree

Search in a Binary Search Tree Given the root node of a binary search tree (BST) and a value. You need to find the

原创 [LeetCode 6.13] Largest Divisible Subset

Largest Divisible Subset Given a set of distinct positive integers, find the largest subset such that every pair (S

原创 Ubuntu系統下常用配置總結

Ubuntu系統下常用配置總結 Ubuntu安裝完配置開發環境 Ubuntu下截圖工具flameshot的安裝與使用 Ubuntu系統安裝無線網卡驅動 Ubuntu18.04下安裝搜狗輸入法的詳細步驟 Ubuntu 18.04下

原创 [leetCode 6.12] Insert Delete GetRandom O(1) Solution

Insert Delete GetRandom O(1) Solution Design a data structure that supports all following operations in average O(

原创 Ubuntu 18.04下安裝Google Chrome

Ubuntu 18.04下安裝Google Chrome 進入Chrome官網下載地址: https://www.google.cn/intl/zh-CN/chrome/ 點擊“下載Chrome”,進入下載頁面: 如圖選擇“

原创 Ubuntu 18.04系統中搭建Python開發環境

Ubuntu 18.04系統中搭建Python開發環境 1.Ubuntu18.04首先是自帶python3的,終端輸入python3有響應,而輸入pip或者pip3無反應。 此時我們就需要安裝pip3 輸入命令: sudo apt

原创 Ubuntu18.04下安裝搜狗輸入法的詳細步驟

Ubuntu18.04下安裝搜狗輸入法的詳細步驟第一步:安裝Fcitx輸入框架第二步 下載Linux版本的搜狗輸入法第三步 安裝Linux版本的搜狗輸入法第四部 相應的設置第五步 最後配置安裝完成,打開瀏覽器輸入即可。 第一步:安

原创 [LeetCode 6.11] Sort Colors

Sort Colors Given an array with n objects colored red, white or blue, sort them in-place so that objects of the sam

原创 win10和Ubuntu雙系統啓動時進入Ubuntu系統出現黑屏的解決方法

win10和Ubuntu雙系統啓動時進入Ubuntu系統出現黑屏的解決方法 現象:可能是Ubuntu更新後重啓選擇進入Ubuntu時出現黑屏 問題分析:可能是由於更新後,grub沒有進行更新,所以無法進入啓動引導 解決方法:進入W

原创 Ubuntu 18.04系統安裝無線網卡驅動&無線無法上網

Ubuntu系統安裝無線網卡驅動 首先連接有線網絡保證網絡正常 然後執行以下兩條命令 sudo apt-get update sudo apt install broadcom-sta-dkms 然後重啓系統解決問題。 若雙系統

原创 Legacy啓動模式下Windows10安裝Ubuntu18.04雙系統詳細過程

Legacy啓動模式下Windows10安裝Ubuntu18.04雙系統詳細過程安裝準備確認系統啓動模式安裝環境安裝所需用軟碟通將Ubuntu的鏡像寫入 U 盤安裝Ubuntu系統Ubuntu系統安裝無線網卡驅動時間校準 安裝準備

原创 [LeetCode 6.10] Search Insert Position

Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, re