- 博客(12)
- 收藏
- 关注
转载 第十一题,mergeTwoLists
Question: 合并两个按顺序排列的链接 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of t...
2019-01-27 14:11:00 2900
转载 第十题,isValidBracket
Question: 查看括号是否是成对出现。 Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid. An...
2019-01-24 17:55:00 129
转载 第九题,longestCommonPrefix
Question: 求最长的公共前缀。 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return ...
2019-01-21 16:59:00 319
转载 第八题,romanToInt
Question: 简单来说就是要求把罗马数字转为阿拉伯数字。 Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM. Symbol ValueI ...
2019-01-18 18:34:00 516
转载 第七题,isPalindrome
Question: 求是否是回文,顾名思义就是返过来也是相同的数。 Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as for...
2019-01-17 22:13:00 516
转载 第六题,Reverse Integer
Questions: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123Output: 321 Example 2: Input: -123Output: -32...
2019-01-15 22:04:00 104
转载 第五题,findMedianSortedArrays
Questions: There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run ti...
2019-01-15 22:02:00 536
转载 第四题,lengthOfLongestSubstring
Question: Given a string, find the length of thelongest substringwithout repeating characters. Example 1: Input: "abcabcbb"Output: 3 Expla...
2019-01-10 16:46:00 1388
转载 第三题,addTowNumbers
Questions: You are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of the...
2019-01-09 17:31:00 136
转载 第二题,linked list
#coding=utf8class Node(object): def __init__(self,x): self.data = x self.next = None def get_next(self): r...
2019-01-08 20:32:00 114
转载 开始刷题,第一题
学习编程和学习语言一样,都是要了解完所有语法后,不断练习才能掌握和熟练运用。今天起开始刷题,分享并记下每一题。 题目: Given an array of integers, returnindicesof the two numbers such that they add up t...
2019-01-06 22:53:00 116
转载 itchat模块学习并应用
目前python的模块越来越多,也封装的越来越方便使用。本文介绍如何利用itchat获取微信好友信息。 首先这也是从网上学习得来的,只是加以练习和总结。 这是本文练习的出处: https://github.com/KaiserW/wechat-friends-data/blob/mast...
2018-06-16 23:16:00 154
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人