- 博客(5)
- 收藏
- 关注
原创 Leetcode: 322. Coin Change(Week8, Medium)
注:本题是需要装满的完全背包问题 Leetcode 322 You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up tha
2017-10-29 21:17:41 344
原创 Leetcode: 130. Surrounded Region(Week7, Medium)
注: 本题使用BFS算法求解 Leetcode 130 Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’. A region is captured by flipping all ‘O’s into ‘X’s in that surround
2017-10-21 12:13:49 347
原创 Leetcode: 133. Clone Graph(Week6, Medium)
注:本题使用BFS算法 Leetcode 133 Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ’s undirected graph serialization: Nodes are labeled uniquely.
2017-10-15 14:01:38 306
原创 Leetcode: 16. 3Sum Closest(Week5, Medium)
学号: 15331204 方向: 数媒 姓名: 林威宏对称密码有五个组成部分: (1) 明文(M)(2) 密文(C)(3) 密钥(K)(4) 加密算法(E)(5) 解密算法(D)接下来的内容皆参照以上的符号定义。1. 算法原理概述DES,即Data Encryption Standard(1) 是一种对称加密算法,典型的DES以64位为分组对数据进行加密,且加密与解密用的是同一
2017-10-05 16:26:56 362
原创 Leetcode: 48.Rotate Image(Week4, Medium)
本题采用了两种解法:常规解法与特殊解法 Leetcode 48 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which
2017-10-01 16:18:32 253
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人