随笔分类 -  leetcode

摘要:1、题目Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built... 阅读全文
posted @ 2018-05-11 16:01 crr121 阅读(154) 评论(0) 推荐(0)
摘要:1、题目Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a biject... 阅读全文
posted @ 2018-05-11 14:56 crr121 阅读(145) 评论(0) 推荐(0)
摘要:1、题目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... 阅读全文
posted @ 2018-04-19 17:12 crr121 阅读(85) 评论(0) 推荐(0)
摘要:1、题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input str... 阅读全文
posted @ 2018-04-19 16:13 crr121 阅读(117) 评论(0) 推荐(0)
摘要:1、题目Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each ... 阅读全文
posted @ 2018-04-19 15:15 crr121 阅读(106) 评论(0) 推荐(0)