• 首页
  • 技术分享
    • Https
    • Java
    • Linux
    • Nginx
    • Redis
    • SQL
    • LeetCode
  • 随记
  • 归档
  • 友情链接
  • 关于我

热门标签:linux Certbot 剑指offer https mysql java nginx leetcode spring-boot spring

分类: LeetCode

LeetCode: 121. Best Time to Buy and Sell Stock

LeetCode / 2020年2月28日更新于 2020年3月2日 / 0 条评论 / 283 次浏览 / wirbelw1nd

Say you have an array for which the ith element is the price of a given stock on day i.

If you were only permitted to complete at most one transactio[……]

Read more

LeetCode: 85. Maximal Rectangle

LeetCode / 2020年2月16日更新于 2020年3月2日 / 0 条评论 / 315 次浏览 / wirbelw1nd

Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.

class Solution {
public:
    in[......]

Read more

LeetCode: 84. Largest Rectangle in Histogram

LeetCode / 2020年2月16日更新于 2020年3月2日 / 0 条评论 / 251 次浏览 / wirbelw1nd

Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the hist[……]

Read more

LeetCode:83. Remove Duplicates from Sorted List

LeetCode / 2020年1月26日更新于 2020年3月2日 / 0 条评论 / 304 次浏览 / wirbelw1nd

Given a sorted linked list, delete all duplicates such that each element appear only once.

要点

和82一样 遍历一遍,但是pre->next移动到cur的位置,不是cur->next的位置

class So[......]

Read more

LeetCode:82. Remove Duplicates from Sorted List II

LeetCode / 2020年1月26日更新于 2020年3月2日 / 1 条评论 / 389 次浏览 / wirbelw1nd

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.

https://leetcode.com/[……]

Read more

LeetCode: 79. Word Search

LeetCode / 2019年12月26日更新于 2020年3月2日 / 0 条评论 / 347 次浏览 / wirbelw1nd

Given a 2D board and a word, find if the word exists in the grid.

The word can be constructed from letters of sequentially adjacent cell, where “adja[……]

Read more

LeetCode: 78. Subsets

LeetCode / 2019年12月13日更新于 2020年3月2日 / 0 条评论 / 196 次浏览 / wirbelw1nd

Note: The solution set must not contain duplicate subsets.
link: https://leetcode.com/problems/subsets/
[……]

Read more

  • 友情链接
  • 关于我
  • 书籍阅读清单
  • 旅行规划存档
  • 本站由袁博云提供计算服务
  • © 2017-2023 YuLai's Blog
  • Powered by WordPress
  • Theme by 小影
  • 粤ICP备17142493号
  •   粤公网安备44030502001781号
  • 首页
  • 技术分享
  • 随记
  • 归档
  • 友情链接
  • 关于我
  • 友情链接
  • 关于我
  • 书籍阅读清单
  • 旅行规划存档
  • 本站由袁博云提供计算服务