LeetCode上做过的题。

题库:https://github.com/liuyubobobo/Play-with-Algorithm-Interview

Coding Tips

  • stringstream可以用eof()判断是否读到了结尾,但不包括尾部空格。

字符串

722.

792.

796.

736.

位运算

  1. Single Number

389.

查找表

  1. Intersection of Two Arrays

  2. Intersection of Two Arrays II

  3. Valid Anagram

  4. Happy Number

  5. Word Pattern

  6. Isomorphic Strings

  7. [Medium] Sort Characters By Frequency

  1. Unique Morse Code Words

  2. Two Sum

15.

18.

16.

454.

49.

697.

734.

447.

149.

719.

219.

217.

220.

155.

716.

729.

731.

855.

290.

811.

819.

128.

链表

  1. Reverse Linked List

  2. [Medium] Reverse Linked List II

  3. Remove Duplicates from Sorted List

  4. [Medium] Partition List

328.

2.

445.

203.

82.

21.

24.

25.

147.

148.

237.

19.

61.

143.

234.

725.

817.

141.

142.

287.

栈、队列、图

20.

150.

71.

735.

144.

94.

145.

341.

388.

102.

107.

103.

199.

232.

637.

279.

127.

126.

675.

347.

23.

692.

239.

786.

857.

856.

490.

二叉树

104.

111.

226.

100.

101.

222.

110.

112.

111.

404.

257.

113.

129.

250.

437.

785.

783.

235.

98.

450.

108.

230.

236.

530.

99.

109.

105.

106.

173.

863.

865.

87.

递归、回溯

17.

690.

93.

131.

797.

46.

47.

784.

77.

39.

40.

216.

78.

90.

401.

254.

79.

200.

130.

417.

695.

694.

733.

711.

51.

52.

37.

390.

动态规划

70.

120.

64.

123.

309.

714.

118.

343.

279.

91.

62.

63.

198.

213.

337.

309.

740.

115.

416.

322.

377.

474.

139.

494.

518.

805.

300.

376.

673.

583.

712.

718.

698.

188.

790.

600.

727.

741.

788.

贪心

455.

392.

561.

435.

860.

861.

765.

数论

386.

线段树

307.

370.

218.

699.

715.

308.

Trie

208.

720.

676.

677.

648.

211.

并查集

737.

721.

684.

图论

787.

685.

765.

864.

随机算法

268.

382.

398.

710.

数学问题

319.

858.

数据结构设计

380.

381.

其他问题

391.

780.

781.

789.

795.

799.

866.

732.