[LeetCode] 238. Product of Array Except Self

2016-08-20
阅读 1 分钟
2.2k
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].

[Oral Expression] Coding相关的口语表达

2016-08-19
阅读 1 分钟
1.9k
For example, a polynomial x^109 + 9x^5 − 2x^2 is most likely pronounced:

[LintCode] Backpack I II III IV V VI [背包六问]

2016-08-15
阅读 5 分钟
17.7k
Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack?

[System Design] 系统设计 (4) -- Web System Design

2016-08-12
阅读 1 分钟
5.1k
Type URL in browser: www.google.com(domain)Find the nearest DNS server(Domain Name Service)Send http/https request to the IP addressWeb Server got the request and deliver it to HTTP server (port 80)HTTP server resend the request to Django, Rails, NodeJS based Web ApplicationWeb Application proces...

[Interview] Preparation Directions

2016-08-12
阅读 3 分钟
2.6k
• [链接] • [链接] • [链接] • [链接] • [链接]• TopCoder Algorithm Tutorial: [链接] 其中几何算法的教程要仔细看• CC150: Cracking the Code Interview: [链接] 

[LeetCode] 126. Word Ladder II

2016-08-09
阅读 6 分钟
2.9k
Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:

[System Design] 系统设计 (3) -- OOD

2016-08-07
阅读 3 分钟
6.8k
Singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.

[Algorithm] DFS和Backtracking的区别

2016-08-06
阅读 1 分钟
5.3k
- DFS Backtracking Target Structure Actual Tree/Graph Structure Any type of structure where portions of the domain can be eliminated (Chess Board, matrix, implicit tree) Definition A specific form of backtracking related to searching tree/graph structures Traverse from the end and prune unaccepta...

[LintCode] Expression Tree Build

2016-08-06
阅读 10 分钟
3k
The structure of Expression Tree is a binary tree to evaluate certain expressions.All leaves of the Expression Tree have an number string value. All non-leaves of the Expression Tree have an operator string value.

[System Design] 系统设计 (2) -- 数据库设计

2016-08-05
阅读 5 分钟
4.3k
Database Intermediary: Memory -- In-memory DB(H2)SSD (Flash)Disk Param: IOPSLatencyThroughputCapacity -- persistence Utilization: Search, Retrieval, WHY NoSQL: Large Data → Large Box/Server → More small boxes Distributed DB: sharding (DB) → Read: Replication/Caching → Write: LSM Tree Solved: Scal...

[LeetCode] Sudoku Solver [Backtracking]

2016-08-05
阅读 3 分钟
2.7k
Problem Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. Solution {代码...} {代码...}

[System Design] 系统设计 (1) -- SNAKE & Twitter

2016-08-04
阅读 5 分钟
6.7k
评分标准 可行解 Work Solution 15% 特定问题 Special Case 20% 分析能力 Analysis 25% 权衡 Trade-off 15% 知识储备 Knowledge 25% SNAKE分析法 Scenario 哪些功能?Feature/Interface? Needs 多强的系统?Constrains/Hypothesis/QPS/DAU Application 主要组成模块?Service/Module Kilobyte 如何存储数据和访问?Data/...

[LintCode/LeetCode] Subsets & Subsets II

2016-08-04
阅读 3 分钟
2.4k
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.

Check some

2016-07-30
阅读 2 分钟
1.6k
{代码...} {代码...}

[LintCode] Longest Increasing Subsequence

2016-07-29
阅读 2 分钟
2.1k
Given a sequence of integers, find the longest increasing subsequence (LIS).

[LintCode] Sort Integers II [Merge-sort, Quick-sort, Heap-sort]

2016-07-27
阅读 3 分钟
3.4k
Given an integer array, sort it in ascending order. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm.

[LeetCode] Valid Perfect Square

2016-07-26
阅读 1 分钟
3.3k
Given a positive integer num, write a function which returns True if num is a perfect square else False.

Java Interview Questions (1)

2016-07-19
阅读 11 分钟
2.8k
Java is a high-level platform-independent object oriented programming language.

[LeetCode] Valid Parentheses

2016-07-14
阅读 2 分钟
2k
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

[LintCode/LeetCode] LRU Cache

2016-07-10
阅读 6 分钟
3.5k
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.

MySQL在OS El Capitan的配置[PID file error]

2016-06-18
阅读 1 分钟
2.4k
We've installed your MySQL database without a root password. To secure it run:

RxJS的基本概念

2016-06-18
阅读 1 分钟
3.2k
Reactive Extension JavaScript. It's a reactive streams library that allows you to work with asynchronous data streams. We represent asynchronous data streams using observable sequences.

[LeetCode] 38. Count and Say

2016-06-17
阅读 2 分钟
2.3k
The count-and-say sequence is the sequence of integers beginning as follows:

[LintCode/LeetCode] Intersection of Two Arrays I & II [BitSet]

2016-06-08
阅读 2 分钟
3.2k
Each element in the result must be unique.The result can be in any order.

[LeetCode] Implement strStr()

2016-06-08
阅读 1 分钟
1.9k
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

[LeetCode] Longest Common Prefix

2016-06-08
阅读 2 分钟
2.2k
Write a function to find the longest common prefix string amongst an array of strings.

[LeetCode] Palindrome Number

2016-06-07
阅读 2 分钟
2.2k
Determine whether an integer is a palindrome. Do this without extra space.

[LeetCode] ZigZag Conversion

2016-06-07
阅读 2 分钟
2.1k
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)

[LeetCode] Compare Version Numbers

2016-06-05
阅读 2 分钟
1.8k
Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.

[LeetCode/LintCode] Binary Tree Postorder Traversal

2016-06-04
阅读 2 分钟
2.3k
Given a binary tree, return the postorder traversal of its nodes' values.