自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(106)
  • 收藏
  • 关注

原创 429. N-ary Tree Level Order Traversal

429. N-ary Tree Level Order Traversal429. N-ary Tree Level Order Traversal题目解决题目Leetcode题目Given an n-ary tree, return the level order traversal of its nodes’ values. (ie, from left...

2018-09-03 20:53:42 188

原创 788. Rotated Digits

788. Rotated Digits788. Rotated Digits题目解决题目Leetcode题目X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X....

2018-09-03 20:49:26 187

原创 860. Lemonade Change

At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bills).Each customer will only buy one lemonade and pay with either a $5, $10, or $20 bill. You must pro

2018-09-03 20:44:49 175

原创 844. Backspace String Compare

Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.

2018-09-03 20:36:41 192

原创 888. Fair Candy Swap

Return an integer array ans where ans[0] is the size of the candy bar that Alice must exchange, and ans[1] is the size of the candy bar that Bob must exchange.

2018-09-02 16:29:38 230

原创 819. Most Common Word

Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at least one word that isn't banned, and that the answer is unique.

2018-09-02 16:18:46 235

原创 783. Minimum Distance Between BST Nodes

Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.

2018-09-02 16:10:32 157

原创 830. Positions of Large Groups

In a string S of lowercase letters, these letters form consecutive groups of the same character. Call a group large if it has 3 or more characters. We would like the starting and ending positions of every large group.

2018-09-02 16:05:13 204

原创 892. Surface Area of 3D Shapes

On a N * N grid, we place some 1 * 1 * 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j). Return the total surface area of the resulting shapes.

2018-09-02 15:55:59 270

原创 893. Groups of Special-Equivalent Strings

You are given an array A of strings. Two strings S and T are special-equivalent if after any number of moves, S == T. A move consists of choosing two indices i and j with i % 2 == j % 2. Return the number of groups of special-equivalent strings.

2018-09-02 14:51:18 220

原创 896. Monotonic Array

An array is monotonic if it is either monotone increasing or monotone decreasing. Return true if and only if the given array A is monotonic.

2018-09-02 14:25:19 350

原创 824. Goat Latin

A sentence S is given, composed of words separated by spaces. We would like to convert the sentence to "Goat Latin" (a made-up language similar to Pig Latin.) Return the final sentence representing the conversion from S to Goat Latin.

2018-08-16 15:19:12 203

原创 590. N-ary Tree Postorder Traversal

Given an n-ary tree, return the postorder traversal of its nodes' values.

2018-08-15 22:12:42 237

原创 559. Maximum Depth of N-ary Tree

Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.

2018-08-15 21:48:36 198

原创 868. Binary Gap

Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there aren't two consecutive 1's, return 0.

2018-08-15 21:23:35 229

原创 821. Shortest Distance to a Character

Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string.

2018-08-15 20:58:41 203

原创 872. Leaf-Similar Trees

Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. Return true if and only if the two given trees with head nodes root1 and root2 are leaf-similar.

2018-08-15 20:24:17 156

原创 884. Uncommon Words from Two Sentences

We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) Return a list of all uncommon words.

2018-08-13 15:09:55 295

原创 867. Transpose Matrix

Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix.

2018-08-13 14:57:05 207

原创 876. Middle of the Linked List

Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middle node.

2018-08-09 15:05:43 204

原创 852. Peak Index in a Mountain Array

Given an array that is definitely a mountain, return any i such that A[0] < A[1] < ... A[i-1] < A[i] > A[i+1] > ... > A[A.length - 1].

2018-08-09 14:46:32 99

原创 832. Flipping an Image

Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.

2018-08-09 14:13:27 134

原创 887. Projection Area of 3D Shapes

On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j). Return the total area of all three projections.

2018-08-07 17:42:24 348

原创 709. To Lower Case

Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

2018-08-07 17:31:26 134

原创 系统分析与设计 Homework(lesson 16)

系统分析与设计 Homework(lesson 16)系统分析与设计 Homework(lesson 16)1. 使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图)2. 将逻辑设计类图映射到实际项目框架的包图。用树形结构表述实现的包和类1. 使用 ECB 实现 make reservation 用例的详细设计(包含用例...

2018-07-01 14:31:07 215

原创 系统分析与设计 Homework(lesson 13)

系统分析与设计 Homework(lesson 9)1. 描述软件架构与框架之间的区别与联系软件架构是软件系统组织的一系列重要的决策,它描述了系统组成的结构元素以及相应接口的选择,和这些元素在协作中特定的行为。框架是特定语言和技术的架构应用解决方案。是具体语言和技术相关的。框架集成了代码和多种第三方解决方案的工具,使其聚焦业务逻辑代码。区别 两者聚焦的方面不同 架构聚焦在技术...

2018-06-08 21:17:23 196

原创 系统分析与设计 Homework(lesson 9)

系统分析与设计 Homework(lesson 9)对Google翻译进行一系列的建模。相应资料:题目链接Google翻译文档Task 1. 用例模型Task 2. 领域模型Task 3. 状态建模对待翻译的对象进行状态建模。状态建模1 状态建模2 Task 4. 活动图Task 5. 系统顺序图&操作协议系统顺序图...

2018-05-13 11:54:30 430

原创 系统分析与设计 Homework(lesson 8)

系统分析与设计 Homework(lesson 8)1. 使用 UML State Model建模对象: 参考 Asg_RH 文档, 对 Reservation/Order 对象建模。建模要求: 参考练习不能提供足够信息帮助你对订单对象建模,请参考现在 定旅馆 的旅游网站,尽可能分析围绕订单发生的各种情况,直到订单通过销售事件(柜台销售)结束订单。2. 研究淘宝退货流...

2018-05-06 13:25:13 190

原创 系统分析与设计 Homework(lesson 7)

系统分析与设计 Homework(lesson 7)领域建模a. 阅读 Asg_RH 文档,按用例构建领域模型。按 Task2 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸说明:请不要受 PCMEF 层次结构影响。你需要识别实体(E)和 中介实体(M,也称状态实体) 在单页面应用(如 vue)中,E 一般与数据库构建有关, M 一般与 store 模式...

2018-04-29 12:19:40 292

原创 系统分析与设计 Homework(lesson 6)

系统分析与设计 Homework(lesson 6)1、用例建模a. 阅读 Asg_RH 文档,绘制用例图。b. 选择你熟悉的定旅馆在线服务系统(或移动 APP),绘制用例图。要求如下:对比 Asg_RH 用例图,请用色彩标注出创新用例或子用例尽可能识别外部系统,并用色彩标注新的外部系统和服务c. 对比两个时代、不同地区产品的用例图,总结在项目早期,发...

2018-04-22 17:23:40 372

原创 812. Largest Triangle Area

812. Largest Triangle Area812. Largest Triangle Area题目解决题目Leetcode题目You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of...

2018-04-21 17:22:53 300

原创 811. Subdomain Visit Count

811. Subdomain Visit Count811. Subdomain Visit Count题目解决题目Leetcode题目A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, we have “com”, at...

2018-04-21 16:19:53 211

原创 806. Number of Lines To Write String

806. Number of Lines To Write String806. Number of Lines To Write String题目解决题目Leetcode题目We are to write the letters of a given string S, from left to right into lines. Each line ha...

2018-04-21 15:58:47 207

原创 784. Letter Case Permutation

784. Letter Case Permutation784. Letter Case Permutation题目解决题目Leetcode题目Given a string S, we can transform every letter individually to be lowercase or uppercase to create another ...

2018-04-21 15:45:36 183

原创 762. Prime Number of Set Bits in Binary Representation

762. Prime Number of Set Bits in Binary Representation762. Prime Number of Set Bits in Binary Representation题目解决题目Leetcode题目Given two integers L and R, find the count of numbers in...

2018-04-21 15:34:08 183

原创 微信小程序(1)

微信小程序(1) 了解微信小程序微信小程序(1) 了解微信小程序1. 下载并安装微信小程序IDE2. 微信小程序项目框架了解1. 下载并安装微信小程序IDE1.官网注册https://mp.weixin.qq.com/,并下载相应的IDE。 2.运行下载的安装包 3.根据一般安装方法安装微信小程序的IDE 一直按照默认配置安装即可。2....

2018-04-15 12:09:55 458

原创 804. Unique Morse Code Words

804. Unique Morse Code Words804. Unique Morse Code Words题目解决题目Leetcode题目International Morse Code defines a standard encoding where each letter is mapped to a series of dots and das...

2018-04-07 20:21:52 153

原创 系统分析与设计 Homework(lesson 2)

系统分析与设计 Homework(lesson 2)1. 简答题1.简述瀑布模型、增量模型、螺旋模型(含原型方法)的优缺点。瀑布模型优点:定义了软件开发基本流程与活动。 降低软件开发的复杂程度,提高软件开发过程的透明性,提高软件开发过程的可管理性。推迟软件实现,强调在软件实现前必须进行分析和设计工作。以项目的阶段评审和文档控制为手段有效地对整个开发过程进行指导,保证了阶...

2018-03-22 14:22:35 269

原创 系统分析与设计 Homework(lesson 1)

系统分析与设计 Homework(lesson 1)1. 简答题(1) 软件工程的定义。 答:软件工程是一门研究和应用如何以系统性的、规范化的、可定量的过程化方法去开发和维护软件,以及如何把经过时间考验而证明正确的管理技术和当前能够得到的最好的技术方法结合起来的学科。 软件工程是指导计算机软件开发和维护的工程学科。采用工程的概念、原理、技术和方法来开发与维护软件,把经过实践考验...

2018-03-15 13:05:49 281

原创 766. Toeplitz Matrix (leetcode)

A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the matrix is Toeplitz.

2018-01-28 21:30:38 353

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除