摘要: Description: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two li 阅读全文
posted @ 2017-10-29 23:11 SYSU_Bango 阅读(123) 评论(0) 推荐(0)
摘要: 首先进入Python的官网:https://www.python.org/ 找到页面中的downloads 下载对应的版本,比如说本人用的是windows,64位就下载第一个,32位就下载第二个。 安装的时候一路点Next就行了。 安装完毕以后,还需要配置环境。 此电脑→右键属性→高级属性,弹出如下 阅读全文
posted @ 2017-10-18 14:34 SYSU_Bango 阅读(243) 评论(0) 推荐(0)
摘要: Description: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must 阅读全文
posted @ 2017-10-16 11:58 SYSU_Bango 阅读(134) 评论(0) 推荐(0)
摘要: Description: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurall 阅读全文
posted @ 2017-10-08 20:32 SYSU_Bango 阅读(92) 评论(0) 推荐(0)
摘要: Description: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may as 阅读全文
posted @ 2017-09-28 17:39 SYSU_Bango 阅读(90) 评论(0) 推荐(0)
摘要: Description: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in th 阅读全文
posted @ 2017-09-21 16:41 SYSU_Bango 阅读(97) 评论(0) 推荐(0)
摘要: Description: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not conta 阅读全文
posted @ 2017-09-19 19:31 SYSU_Bango 阅读(115) 评论(0) 推荐(0)
摘要: Spiral Matrix II: Description: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3 阅读全文
posted @ 2017-09-19 13:28 SYSU_Bango 阅读(129) 评论(0) 推荐(0)
摘要: Description: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for anothe 阅读全文
posted @ 2017-09-18 13:39 SYSU_Bango 阅读(91) 评论(0) 推荐(0)
摘要: Decription: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 解题思路: 将罗马数字的字符串转换成阿拉伯数字。 先来查阅资 阅读全文
posted @ 2017-09-12 13:41 SYSU_Bango 阅读(97) 评论(0) 推荐(0)