随笔分类 -  cpp刷Leetcode

上一页 1 ··· 4 5 6 7 8

第一遍刷完leetcode,过程非常纠结。 第二遍再过leetcode,看看自己能记得多少,顺便加深印象。
【Rotate Image】cpp
摘要:题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?代码:class Solutio... 阅读全文

posted @ 2015-04-26 16:29 承续缘 阅读(143) 评论(0) 推荐(0) 编辑

【Valid Sudoku】cpp
摘要:题目:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled wi... 阅读全文

posted @ 2015-04-25 22:27 承续缘 阅读(220) 评论(0) 推荐(0) 编辑

【Remove Duplicates from Sorted Array II】cpp
摘要:题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ... 阅读全文

posted @ 2015-04-15 08:57 承续缘 阅读(173) 评论(0) 推荐(0) 编辑

【Remove Duplicates from Sorted Array】cpp
摘要:题目:https://leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remove the duplicates in place such that each element appea... 阅读全文

posted @ 2015-04-13 22:26 承续缘 阅读(205) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示