08 2018 档案

摘要:We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)". Then, we removed all commas, decimal points, and spaces, and ended up with the str 阅读全文
posted @ 2018-08-30 23:56 Grandyang 阅读(2790) 评论(0) 推荐(1) 编辑
摘要:We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1. Return the same tree where every subtree 阅读全文
posted @ 2018-08-26 23:45 Grandyang 阅读(3841) 评论(2) 推荐(1) 编辑
摘要:We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score is the sum of the average of each group. What is the larges 阅读全文
posted @ 2018-08-20 11:05 Grandyang 阅读(4751) 评论(2) 推荐(0) 编辑
摘要:A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com 阅读全文
posted @ 2018-08-16 11:01 Grandyang 阅读(3150) 评论(0) 推荐(0) 编辑
摘要:You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Notes: 3 <= points.length < 阅读全文
posted @ 2018-08-11 23:00 Grandyang 阅读(3574) 评论(0) 推荐(0) 编辑
摘要:We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take turns erasing exactly one number from the chalkboard, 阅读全文
posted @ 2018-08-08 21:58 Grandyang 阅读(2296) 评论(3) 推荐(0) 编辑
摘要:Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii". Here, we have groups, of adjacent letters 阅读全文
posted @ 2018-08-05 20:03 Grandyang 阅读(4736) 评论(0) 推荐(1) 编辑
摘要:There are two types of soup: type A and type B. Initially we have N ml of each type of soup. There are four kinds of operations: Serve 100 ml of soup 阅读全文
posted @ 2018-08-02 12:21 Grandyang 阅读(2973) 评论(0) 推荐(0) 编辑

Fork me on GitHub