原创 Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A

原创 Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid

原创 Valid Sudoku

Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled,

原创 Remove Nth Node From End of List

Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list:

原创 Add Binary

Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". wa了很多

原创 Implement strStr()

Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of h

原创 Remove Element

Given an array and a value, remove all instances of that value in place and return the new length. The order of elem

原创 Longest Common Prefix

Longest Common Prefix  Total Accepted: 49556 Total Submissions: 192089My Submissions Question  Solution  Wri

原创 Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers.

原创 Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes o

原创 Java中的String類常量池詳解

從一個博客上看到的6個題,先看看吧,如果都會了,這部分的知識就掌握的不錯啦!輸出結果在代碼註釋後面: test1: package StringTest;public class test1 {/** * @param ar

原创 Roman to Integer

Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 瞭解規則,進行運

原创 Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In

原创 字符串匹配的KMP算法

字符串匹配的KMP算法 作者: 阮一峯 日期: 2013年5月 1日 字符串匹配是計算機的基本任務之一。 舉例來說,有一個字符串"BBC ABCDAB ABCDABCDABDE",我想知道,裏面是否包含另一個

原创 艾森哲面試 Accenture

早上8點45到達軟件園24號樓11層,本來時9點開始面試,一直等到9點30,面試官才匆匆來到。通知我們到會議室面試。 面試開始才知道是羣面+英語面: 開始50分鐘全部用英語 1.自我介紹(兩分鐘,自我評價): 我覺得重要的是   第一步