摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8726771.html 来看一下题目: Given a string s, find the longest palindromic substring in s. You may assume that the ma 阅读全文
posted @ 2018-04-06 04:05 Arya.Mo 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8719622.html 来看一下题目: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indi 阅读全文
posted @ 2018-04-05 02:34 Arya.Mo 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 转载请注明:http://www.cnblogs.com/igoslly/p/8708960.html 题目:用户会输入数独预先填好的数字,请设计程序进行解题 输入:按行按列进行输入,空置位置以0输入 数独游戏要求: 根据表格里先给出的提示,填写1-9数字,使9×9的宫格满足每行、每列数字均不重复; 阅读全文
posted @ 2018-04-03 15:54 Arya.Mo 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8707664.html 来看一下题目: Given two binary trees, write a function to check if they are the same or not. Two binary 阅读全文
posted @ 2018-04-03 11:54 Arya.Mo 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8707274.html 来看一下题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Give 阅读全文
posted @ 2018-04-03 11:06 Arya.Mo 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 哎作为一个落后的技术小白,默默地开始地刷起了Leetcode,期望能一直更新 阅读全文
posted @ 2018-03-29 21:46 Arya.Mo 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8672656.html 看一下题目: Given a linked list, remove the nth node from the end of list and return its head. For exa 阅读全文
posted @ 2018-03-29 21:45 Arya.Mo 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8672467.html 来看一下题目: You are given two non-empty linked lists representing two non-negative integers. The digi 阅读全文
posted @ 2018-03-29 21:12 Arya.Mo 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 【转载请注明】http://www.cnblogs.com/igoslly/p/8670038.html 链表逆序在链表题目中还是较为常见的,这里将Leetcode中的两道题放在一起,分别是 0092 Reverse Linked List II 和 0206 Reverse Linked List 阅读全文
posted @ 2018-03-29 15:24 Arya.Mo 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 转载请注明:http://www.cnblogs.com/igoslly/p/7864406.html 树的三种遍历 当接触树后,自然而然会接触树的遍历。 树的遍历共分为3种:先序遍历、中序遍历、后序遍历,这里的“序”为根节点的遍历顺序; 故而遍历顺序可理解为: 先序遍历:根节点 →左子树 → 右子 阅读全文
posted @ 2017-11-20 04:06 Arya.Mo 阅读(9253) 评论(0) 推荐(1) 编辑