原创 Leetcode 198 House Robber 搶劫最大金額

原題地址 https://leetcode.com/problems/house-robber/ 題目描述 You are a professional robber planning to rob houses along a

原创 Leetcode 201 Bitwise AND of Numbers Range 區間內整數按位與

原題地址 https://leetcode.com/problems/bitwise-and-of-numbers-range/ 題目描述 Given a range [m, n] where 0 <= m <= n <= 214

原创 Leetcode 205 Isomorphic Strings 同構字符串

原題地址 https://leetcode.com/problems/isomorphic-strings/ 題目描述 Given two strings s and t, determine if they are isomor

原创 Leetcode 187 Repeated DNA Sequences 重複出現的DNA序列

原題地址 https://leetcode.com/problems/repeated-dna-sequences/ 題目描述 All DNA is composed of a series of nucleotides abbr

原创 Leetcode 207 Course Schedule 課程表

原題地址 https://leetcode.com/problems/course-schedule/ 題目描述 There are a total of n courses you have to take, labeled f

原创 Leetcode 225 Implement Stack using Queues 使用隊列實現棧

原題地址 https://leetcode.com/problems/implement-stack-using-queues/ 題目描述 Implement the following operations of a stack usi

原创 Pits - CSS3+JS網頁小遊戲

&#10; 玩遊戲 ↑ - 遊戲主頁 - 原文鏈接 遊戲介紹 這是一款非常簡單的網頁小遊戲。在小動物的前面的路上有美味的食物,然而擋在它面前的是一個方形的坑,要想拿到食物並須用土塊把坑填上再過去。按住屏幕放大土塊,鬆開手指讓土塊落下並填到

原创 Leetcode 137 Single Number II 僅出現一次的數字

原題地址 https://leetcode.com/problems/single-number-ii/ 題目描述 Given an array of integers, every element appears three times

原创 Leetcode Single Number 擴展

問題描述 Leetcode 137 Single Number II 僅出現一次的數字 中提出了一個更一般的問題:有一個數組,其中有一個元素出現了x次,其餘所有元素都出現了y次(x < y),找出這個出現了x次的元素,要求時間複雜度O(n

原创 2016屆校招 百度WEB前端研發【實習生+提前批】面試經歷

終於到了可以實習的時候,然而這時候大部分實習只面向2017屆的,據說原因是2016屆的校招名額已滿,所以爲了不耽誤你的校招(因爲你可能想通過實習轉正什麼的),還是不招2016屆的學生了。儘管如此,還是得找啊,於是各種投簡歷。前幾天投了一個

原创 Leetcode 213 House Robber II 搶劫最大金額

原題鏈接 https://leetcode.com/problems/house-robber-ii/ 題目描述 Note: This is an extension of House Robber. 注意:這題是House Robbe

原创 自適應的對話氣泡皮膚實現方案

原文鏈接 在實現評論及回覆功能時,考慮可以讓大家選擇一個皮膚,讓評論區域顯得不那麼單調,具體效果可以參考百度貼吧和QQ的聊天界面。本文給出了一種採用CSS Sprites的實現方式,氣泡可以做到寬度和高度的自適應擴展。 本例中用到的氣泡

原创 Leetcode 226 Invert Binary Tree 反轉二叉樹

原題地址 https://leetcode.com/problems/invert-binary-tree/ 題目描述 Invert a binary tree. 反轉一棵二叉樹。 from 4 / \ 2

原创 Leetcode 224 Basic Calculator 基本計算器

原題地址 https://leetcode.com/problems/basic-calculator/ 題目描述 Implement a basic calculator to evaluate a simple expression

原创 Leetcode 223 Rectangle Area 矩形區域面積

原題地址 https://leetcode.com/problems/rectangle-area/ 題目描述 Find the total area covered by two rectilinear rectangles in a