Fork me on GitHub
Xuwy Blog

Learning Blog


  • 首页

  • 关于

  • 标签

  • 分类

CFLProblem

发表于 2018-12-21 | 分类于 Algorithms | 阅读次数:

CFL-Problem

Capacitated Facilities Location Problem - the project for Algorithm Course.

阅读全文 »

Leetcode-FOURTEEN-duplicateNumber

发表于 2018-12-07 | 分类于 Algorithms | 阅读次数:

FindTheDuplicateNumber

  • FindTheDuplicateNumber
    • Description
    • Example
    • Analysis
    • Linked List Cycle Like
    • AC Picture
    • Code
阅读全文 »

Leetcode-Thirteen-arraySum

发表于 2018-12-02 | 分类于 Algorithms | 阅读次数:

Array Sum

  • Array Sum
    • Two Sum
      • Description
      • Example
      • Analysis
      • AC Picture
      • Code
      • Further
    • Three Sum
      • Description
      • Example
      • Analysis
      • AC Picture
      • Code
阅读全文 »

Leetcode-TWELVE-StringProblem

发表于 2018-11-25 | 分类于 Algorithms | 阅读次数:

String Problems

  • String Problems
    • Unique Email Addresses
      • Description
      • Example
      • Analysis
      • Further
      • Comparison
    • Longers Common Prefix
      • Description
      • Example
      • Analysis
阅读全文 »

Leetcode-ELEVEN-GasStation

发表于 2018-11-13 | 分类于 Algorithms | 阅读次数:

Gas Station

  • Gas Station
    • Description
    • Example
    • Analysis
      • AC Picture
      • Code
    • Further
      • AC Picture
      • Code
阅读全文 »

Leetcode-TEN-wordBreak

发表于 2018-11-06 | 分类于 Algorithms | 阅读次数:

Word Break Problems

  • Word Break Problems
    • Word Break
      • Description
      • Example
      • Analysis
      • AC Picture
      • Code
    • Word Break II
      • Description
      • Example
      • Analysis
      • AC Picture
      • Code
阅读全文 »

Leetcode-NINE-LongestValidParentheses

发表于 2018-11-02 | 分类于 Algorithms | 阅读次数:

Longest Valid Parentheses

  • Longest Valid Parentheses
    • Description
    • Example
    • Analysis
    • Accept Picture
    • Code
    • Further Thinking

Description

Given a string containing just the characters ‘(‘ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.

阅读全文 »

Go-Agenda

发表于 2018-11-02 | 分类于 Service-Computing | 阅读次数:

Go-Agenda

会议管理系统

Go-Agenda 为简单的会议管理系统,采用 Go 语言进行开发,开发者为xwy27 和 SiskonEmilia,开发基础与要求参阅pmlpml 课程要求

Github for Go-Agenda

目录

  • Go-Agenda
    • 开发过程解读
    • 项目架构解读
    • 源码解读
    • 后记
阅读全文 »

Leetcode-EIGHT-SumofSubsequenceWidth

发表于 2018-10-25 | 分类于 Algorithms | 阅读次数:

Leetcode-EIGHT-Mathematic

  • Leetcode-EIGHT-Mathematic
    • SumofSubsequenceWidths
      • Description
      • Example
      • Analysis
      • Code

SumofSubsequenceWidths

Description

Given an array of integers A, consider all non-empty subsequences of A.

For any sequence S, let the width of S be the difference between the maximum and minimum element of S.

Return the sum of the widths of all subsequences of A.

As the answer may be very large, return the answer modulo 10^9 + 7.

Note:
1 <= A.length <= 20000
1 <= A[i] <= 20000

阅读全文 »

Leetcode-SEVEN-IPO

发表于 2018-10-19 | 分类于 Algorithms | 阅读次数:

Leetcode-SEVEN-Greedy

  • Leetcode-SEVEN-Greedy
    • IPO
      • Description
      • Example
      • Analysis
      • Code

IPO

Description

Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it has limited resources, it can only finish at most k distinct projects before the IPO. Help LeetCode design the best way to maximize its total capital after finishing at most k distinct projects.

You are given several projects. For each project i, it has a pure profit Pi and a minimum capital of Ci is needed to start the corresponding project. Initially, you have W capital. When you finish a project, you will obtain its pure profit and the profit will be added to your total capital.

To sum up, pick a list of at most k distinct projects from given projects to maximize your final capital, and output your final maximized capital.

阅读全文 »
123…6

Xu Weiyuan

58 日志
8 分类
16 标签
© 2019 Xu Weiyuan
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4