规雨
规雨
全部文章
分类
Java-web开发(24)
Java底层(1)
Java项目实战(1)
会用决定下限,基础决定上限(5)
全栈-Java基础(13)
数据结构(8)
每日一道编程题(57)
知识积累(8)
算法(1)
归档
标签
去牛客网
登录
/
注册
兴趣记录
以兴趣为驱动,以咸鱼为目标
全部文章
(共118篇)
53 Lucky Numbers in a Matrix
题目 Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element of the matrix such th...
2020-03-18
0
485
复杂sql记录
灵感来了也记不住,在这里记录一下一些sql查询,方便以后复制粘贴 往角色为st_admin的用户的user_msg表中插入一条记录。 难点:角色为st_admin的用户个数不定 <insert id="sendMsgToRole"> insert in...
2020-03-17
0
505
52 Generate a String With Characters That Have Odd Counts
题目 Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The returned string ...
2020-03-17
0
479
51 Sort the Matrix Diagonally
题目 分析 题意:给一个m*n矩阵,按对角线进行升序排序。 将矩阵下标标出来 解题关键在于如何找到“对角线”。 我们人是可以直观看出来的,但是计算机不能。 通过观察发现,<mark>对角线的元素必有:i-j相同</mark>。 根据这个特性,实现对角遍历,将每个对...
2020-03-16
0
499
50 Maximum Binary Tree
题目 Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the arra...
2020-03-15
0
495
49 Encode and Decode TinyURL
题目 Note: This is a companion problem to the System Design problem: Design TinyURL. TinyURL is a URL shortening service where you enter a URL such a...
2020-03-14
0
657
48 Insert into a Binary Search Tree
题目 Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root node of...
2020-03-13
0
384
47 Find a Corresponding Node of a Binary Tree in a Clone of That Tree
题目 Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original...
2020-03-12
0
558
46 Count Negative Numbers in a Sorted Matrix
题目 Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. ...
2020-03-11
0
427
45 Increasing Decreasing String
题目 Given a string s. You should re-order the string using the following algorithm: Pick the smallest character from s and append it to the result. P...
2020-03-10
0
521
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页