Weiguang的博客

  • 首页
  • 编程开发
    • Go语言
  • 算法
  • Linux
  • 随笔

近期文章

  • TDEngine 快速上手
  • 使用 Samba 打通 Linux 物理机和 Windows 虚拟机文件互传
  • 使用 Dockerfile 构建镜像
  • Shell 编程入门
  • Flux 多表查询小实验

标签

Docker (1) EMQX (2) Git (1) Go语言 (8) Influx (2) IO 模型 (1) JVM (2) LeetCode (24) LeetCode-go (1) Linux (5) MQ (2) MQTT (1) Python (1) Shell (1) TDEngine (1) Vue (1) WordPress (1) 前端 (1) 多线程 (2) 并发编程 (4) 数据结构 (2) 时序数据库 (1) 算法和数据结构 (8) 运维 (3)

分类: 算法

[LeetCode每日一题]264. Ugly Number II

2020年3月16日 by lwg0452·0评论

题目如下: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Output: 12 Explanation: 1, 2, 3, 4, 5, 6, 8, 9, 1… 阅读全文

[LeetCode每日一题]263. Ugly Number

2020年3月16日 by lwg0452·一条评论

题目如下: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example 1: Input: 6 Output: true Explanation: 6 = 2… 阅读全文

[LeetCode每日一题]213. House Robber II

2020年3月12日 by lwg0452·0评论

题目如下: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first hou… 阅读全文

[LeetCode每日一题]198. House Robber

2020年3月12日 by lwg0452·0评论

题目如下: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent… 阅读全文

[LeetCode每日一题]140. Word Break II

2020年3月11日 by lwg0452·0评论

题目如下: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such pos… 阅读全文

[LeetCode每日一题]139. Word Break

2020年3月8日 by lwg0452·0评论

题目如下: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. Exampl… 阅读全文

[LeetCode每日一题]95. Unique Binary Search Trees II

2020年3月7日 by lwg0452·0评论

题目如下: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 … n. Example: Input: 3 Output: [ [1,null,3,2], [3,2,null,1], [3… 阅读全文

[LeetCode每日一题]96. Unique Binary Search Trees

2020年3月6日 by lwg0452·0评论

题目如下: Given n, how many structurally unique BST's (binary search trees) that store values 1 … n? Example: Input: 3 Output: 5 Explanation: Given n = 3, there are a total of 5 unique BST's: 1 … 阅读全文

[LeetCode每日一题]64. Minimum Path Sum

2020年3月5日 by lwg0452·0评论

题目如下: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right… 阅读全文

[LeetCode每日一题]63. Unique Paths II

2020年3月4日 by lwg0452·0评论

题目如下: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to… 阅读全文

文章分页

1 2 3 4
© 2018-2025 Weiguang All Rights Reserved.