Leetcode Algorithms -- Single Number

Single Number (Medium)

Description

阅读更多

Leetcode Algorithms -- Sort List

Sort List (Medium)

Description

阅读更多

Leetcode Algorithms -- Longest Substring Without Repeating Characters

Longest Substring Without Repeating Characters (Medium)

Description

阅读更多

Leetcode Algorithms -- ZigZag Conversion

ZigZag Conversion (Easy)

Description

1
2
3
4
5
6
7
8
9
10
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)

P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSIIGYIR"
Write the code that will take a string and make this conversion given a number of rows:

string convert(string text, int nRows);
convert("PAYPALISHIRING", 3) should return "PAHNAPLSIIGYIR".

阅读更多

Leetcode Algorithms -- Balanced Binary Tree

Balanced Binary Tree (Easy)

Description

阅读更多

Leetcode Algorithms -- String to Integer (atoi)

String to Integer (atoi) (Easy)

Description

阅读更多

Leetcode Algorithms -- Excel Sheet Column Title

Excel Sheet Column Title (Easy)

Description

阅读更多

Leetcode Algorithms -- Excel Sheet Column Number

Excel Sheet Column Number (Easy)

Description

阅读更多

Leetcode Algorithms -- Intersection of Two Linked Lists

Intersection of Two Linked Lists (Easy)

Description

阅读更多

Leetcode Algorithms -- Majority Element

Majority Element (Easy)

Description

阅读更多