Fork me on GitHub
Xuwy Blog

Learning Blog


  • 首页

  • 关于

  • 标签

  • 分类

Leetcode-SIX-jumpGame

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

Jump Game II

  • Jump Game II
    • Description
    • Example
    • Analysis
    • Simple One - Jump Game
      • Description
      • Example
      • Analysis

Description

Given an array of non-negative integers, you are initially positioned at the first index of the array.

Each element in the array represents your maximum jump length at that position.

Your goal is to reach the last index in the minimum number of jumps.

Note: You can assume that you can always reach the last index.

阅读全文 »

Selpg-WithGO

发表于 2018-10-06 | 分类于 Service-Computing | 阅读次数:

Selpg

Selpg 是实用的命令行程序,它可以读取终端输入或文件输入,然后根据给定参数,打印输入的指定位置。这是最初开发者的教学链接

不得不说,和别人的差距是很明显的。无论是编程规范,还是博客水准。在这里就不介绍命令行程序的规范和准则了,最初开发者的博客已经非常详细了。本文为指导博客,讲解阅读源代码和开发过程。强烈建议在阅读下文前,理解原作者的博客。

阅读全文 »

Leetcode-FIVE-removeDuplicateLetters

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

Remove Duplicate Letters

  • Remove Duplicate Letters
    • Description
    • Example
    • Analysis
    • Accept Picture
    • Code

Description

Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.

阅读全文 »

Service-Computing:golangOnCentOS7

发表于 2018-09-26 | 分类于 Service-Computing | 阅读次数:

配置 Go 环境

  • 配置 Go 环境
    • Go 环境配置与检测
      • 安装 golang
      • 配置环境变量
      • 安装 Go 工具
      • VSCode(Optional)
    • 绑定 Git 仓库
    • 运行第一个 Go 程序(Example)
阅读全文 »

Leetcode-Four-KthSimilarStrings

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

Leetcode-Breadth-First-Search

  • Leetcode-Breadth-First-Search
    • K-SimilarStrings
      • Description
      • Example
      • Analysis
      • Accept Picture
      • Code
      • Another Idea

K-SimilarStrings

Description

Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equals B.

Given two anagrams A and B, return the smallest K for which A and B are K-similar.

Note:

1 <= A.length == B.length <= 20
A and B contain only lowercase letters from the set {‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’}

阅读全文 »

Leetcode-Three-DFS

发表于 2018-09-20 | 分类于 Algorithms | 阅读次数:

Leetcode-Depth-First-Search

  • Leetcode-Depth-First-Search
    • Path-Sum
      • Description
      • Example
      • Analysis
      • Code
    • Sum-root-to-leaf-number
      • Description
      • Example
      • Analysis
      • Code
    • BTree-Max-Path—Sum
      • Description
      • Example
      • Analysis
      • Code

Path-Sum

Description

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

Note: A leaf is a node with no children.

阅读全文 »

Leetcode-TWO-ReversePairs

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

ReversePairs

  • ReversePairs
    • Description
    • Examples
    • Analysis & Code
      • General Solution
      • Divide and Conquer Solution
    • Summary
阅读全文 »

Service-Computing:privateCloud

发表于 2018-09-10 | 分类于 Service-Computing | 阅读次数:

privateCloud

桌面云,大家已经用过还能多次了。这个东西在大家看来,可能是很神奇的技术,但这次我们就要利用虚拟机搭建一个自己的私有云,并完成图形化界面的远程控制。

阅读全文 »

Leetcode-ONE-ContainerWithMostWater

发表于 2018-09-04 | 分类于 Algorithms | 阅读次数:

ContainerWithMostWater

  • ContainerWithMostWater
    • Description
    • Example
    • Analysis & Code
      • General Solution
      • Advanced Solution
阅读全文 »

unity-priestsAndDevils-V3

发表于 2018-06-15 | 分类于 Unity-3d | 阅读次数:

priestsAndDevils-V3

基于当前游戏状态,给出正确解路径下一步提示。

  • priestsAndDevils-V3
    • 游戏状态图
      • 分析
        • 游戏状态定义
        • 游戏状态变换
        • 正确解路径
      • cpp code
      • cpp To csharp
    • 游戏改进
      • 预览图
      • 视频
阅读全文 »
1234…6

Xu Weiyuan

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