原创 171. Excel Sheet Column Number

Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its correspondi

原创 496. Next Greater Element I

You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all th

原创 349. Intersection of Two Arrays

Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2,

原创 387. First Unique Character in a String

Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. E

原创 122. Best Time to Buy and Sell Stock II

Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find t

原创 500. Keyboard Row

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American key

原创 MYSQL命令行查詢中文亂碼問題解決方案

會出現中文亂碼的原因可能有以下幾點原因: (1)server問題 (2)table語系問題 (3)客戶端問題 解決方案: (1)找到安裝mysql時的目錄下my.ini文件,用記事本將其打開,看其中的default-character-s

原创 SDN關鍵技術

openflow        SDN是一種網絡架構理念,是一個框架,openflow是一個具體的協議,SDN網絡的控制層面和數據轉發層面通過標準的接口進行通信,openflow就是一種用於控制器和網絡設備之間通信的標準化南向接口。  

原创 168. Excel Sheet Column Title

168. Excel Sheet Column Title Add to List Description Submission Solutions Total Accepted: 92486Total Submiss

原创 121. Best Time to Buy and Sell Stock

Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to

原创 492. Construct the Rectangle

For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular we

原创 504. Base 7

Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202" Example 2: Input: -7 O

原创 485. Max Consecutive Ones

Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output

原创 167. Two Sum II - Input array is sorted

Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a spec

原创 教你如何搶微信紅包!實驗數據告訴你先搶後搶的區別有多大?

    16年暑期的時候有幸在老師的帶動下和200多位同學一起在微信羣裏發紅包,用大量的實際數據研究了微信紅包背後的故事。     此片文章主要分析微信羣中紅包發放的數據,找到紅包金額分佈規律、時序分佈規律以及每個人多次搶到的紅包金額的分