木落长安rr

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年3月23日

摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2019-03-23 16:05 木落长安rr 阅读(110) 评论(0) 推荐(0) 编辑

摘要: Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 根据经验,先建立一个虚结点dummy node,连上原链表的头结点,这样的话就算头结点变 阅读全文
posted @ 2019-03-23 11:29 木落长安rr 阅读(273) 评论(0) 推荐(0) 编辑

摘要: Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer poswhich represents the posit 阅读全文
posted @ 2019-03-23 10:42 木落长安rr 阅读(321) 评论(0) 推荐(0) 编辑

2019年3月22日

摘要: Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 解法二(C++) 阅读全文
posted @ 2019-03-22 11:50 木落长安rr 阅读(283) 评论(0) 推荐(0) 编辑

2018年12月13日

摘要: AES的C语言实现入门版 AES分组密码算法中明文分组位128bits,密钥分组可以为128,192,256bits。AES也是由最基本的变换单位——“轮”多次迭代而成的。我们将 AES 中的轮变换计为 Round(State, RoundKey),State 表示消息矩阵;RoundKey 表示轮 阅读全文
posted @ 2018-12-13 18:08 木落长安rr 阅读(4157) 评论(1) 推荐(0) 编辑