Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2020-01-24 10:50:25
阅读次数:
98
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
V5.0.17+版本开始,当你的order排序中使用了SQL函数的时候,请使用orderRaw方法替代order,例如: Db::table('think_user')->where('status=1')->orderRaw('rand()')->limit(5)->select(); Db::n ...
分类:
编程语言 时间:
2020-01-23 12:24:48
阅读次数:
134
You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] class Solution { public List< ...
分类:
其他好文 时间:
2020-01-23 11:01:57
阅读次数:
57
42. Trapping Rain Water we need to find how many waters can each block[i] trap. So we need to find the left peak from block_0 to block[i-1] and find t ...
分类:
其他好文 时间:
2020-01-23 09:32:11
阅读次数:
89
Problem Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not ...
分类:
其他好文 时间:
2020-01-22 14:33:31
阅读次数:
71
RxJS is a library for composing asynchronous and event-based programs by using observable sequences. It provides one core type, the Observable, satell ...
分类:
Web程序 时间:
2020-01-21 16:08:30
阅读次数:
133
<?php namespace page; use think\Paginator; class Page extends Paginator { //首页 protected function home() { if ($this->currentPage() > 1) { return "<a ...
分类:
其他好文 时间:
2020-01-20 11:19:20
阅读次数:
113
Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j]. You need to return the number of important reverse pai ...
分类:
其他好文 时间:
2020-01-19 22:19:33
阅读次数:
77
题目大意 给出一个由N个整数构成的集合{ai}和一个整数K,若该集合的某个非空子集中的所有元素之和大于等于K,则称该子集是good的 若去掉一个数不会对good的集合的个数产生影响,则称该数字为unnecessary的 请求出在N个数中unnecessary的数的个数 N,K≤5000,ai≤10^ ...
分类:
其他好文 时间:
2020-01-18 18:10:16
阅读次数:
68