zoukankan      html  css  js  c++  java
  • LeetCode-day01&02

    感觉还好,坚持住就行,毕竟智商不够

    1. Length of Last Word求一个数组的最后一个单词的长度

    2. Plus One   大数加1

    3.  Add Binary 二进制加法

    4. Sqrt(x) 求一个数的开方

    5. Valid Perfect Square 求正方形的边的长度

    6. Sum of Square Numbers 将一个数拆分成两个可以开方的数

    7. Factorial Trailing Zeroes 阶乘结果0的个数 

    8. Two Sum 求数组中两个数的和为target,并返回这两个数

    9. Two Sum II - Input array is sorted 输入一个有序的数组,按顺序返回相加结果为target的这两个数,下标为1开头的

    10. Two Sum IV - Input is a BST 平衡搜索树,输出是否能找到两个节点值的和为target

    11. Reverse Integer 翻转一个int数

    12. Palindrome Number 回文数

    13. Palindrome Linked List 判断是否是回文链表,利用了翻转链表,很巧妙********

    14  Reverse Linked List 真。翻转链表

    15. Valid Palindrome 还是判断是否是回文,不过是一个String,但是要将不是字母数字的字符去掉

    16. Roman to Integer 罗马数字转换成数字

    17. Valid Parentheses (){}[]的匹配问题

    18. Merge Two Sorted Lists 将两个链表融合成一个,注意要按顺序拼接

    19. Merge Sorted Array 将nums2插入到nums1中去,注意按顺序插入

    20. Remove Duplicates from Sorted Array 去除数组中重复的数字

    21. Remove Element 移出数组中的值为value的所有元素

    22. Implement strStr() 第一个字符串包含第二个字符串的最初位置

    23. Repeated Substring Pattern 重复子串是否能拼接成这个String

    24. Search Insert Position 一个int插入一个数组中,应该插入的位置

    25. First Bad Version 第一个坏的数

    26. Guess Number Higher or Lower 猜1到n 中的数

    27. Maximum Subarray 最大子串和

    28. Best Time to Buy and Sell Stock 

  • 相关阅读:
    三数之和
    盛最多水的容器
    正则表达式匹配
    最长回文子串
    寻找两个有序数组的中位数
    2、二维数组中的查找
    1、找出数组中重复的数字
    mongodb的下载地址
    提取快捷方式的图标资源问题
    一条数据引发的问题
  • 原文地址:https://www.cnblogs.com/qjx-2016/p/7510396.html
Copyright © 2011-2022 走看看