摘要: 题目描述 Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... 题目大意 将数组中的数字重新排序,满足nums[0] < nums[1] > nums[2] < num 阅读全文
posted @ 2019-07-15 11:26 你好哇傻小妞 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the tw 阅读全文
posted @ 2019-07-15 10:53 你好哇傻小妞 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may 阅读全文
posted @ 2019-07-12 15:45 你好哇傻小妞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure 阅读全文
posted @ 2019-07-12 14:57 你好哇傻小妞 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list pr 阅读全文
posted @ 2019-07-11 15:21 你好哇傻小妞 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目描述 For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible 阅读全文
posted @ 2019-07-11 14:52 你好哇傻小妞 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums b 阅读全文
posted @ 2019-07-10 14:44 你好哇傻小妞 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for 阅读全文
posted @ 2019-07-10 14:30 你好哇傻小妞 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may 阅读全文
posted @ 2019-07-10 10:43 你好哇傻小妞 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 题目描述 You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each 阅读全文
posted @ 2019-07-09 15:57 你好哇傻小妞 阅读(106) 评论(0) 推荐(0) 编辑