![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
喝粥也会胖的唐僧
这个作者很懒,什么都没留下…
展开
-
290. Word Pattern
题目描述: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 bijection between a letter in pattern and a non-empty word in st...原创 2018-09-07 20:03:14 · 354 阅读 · 0 评论 -
69. Sqrt(x)
题目描述: Implement int sqrt(int x).Compute and return the square root of x, where x is guaranteed to be a non-negative integer.Since the return type is an integer, the decimal digits are truncate...原创 2018-09-08 00:07:43 · 693 阅读 · 0 评论 -
367. Valid Perfect Square
题目描述: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-in library function such as sqrt.Example 1:Input: 16Ou...原创 2018-09-08 12:25:18 · 375 阅读 · 0 评论 -
20. Valid Parentheses
题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type...原创 2018-09-09 16:40:11 · 435 阅读 · 0 评论 -
874. Walking Robot Simulation
题目描述:A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands:-2: turn left 90 degrees -1: turn right 90 degrees 1 <...原创 2018-09-06 21:43:46 · 526 阅读 · 0 评论 -
ZigZag Conversion(java)
题目描述:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P ...原创 2018-12-08 10:48:39 · 583 阅读 · 1 评论