💎串串💎
💎串串💎
全部文章
算法
=====语言=====(1)
c(1)
java(12)
Java学习·(8)
linux基础(8)
linux运维(3)
Redis(1)
SpringBoot(6)
web前端(3)
大数据基础(20)
开发工具(1)
数据库(7)
未归档(51)
生活(1)
网络(4)
软件设计师-软考(5)
软件设计师考试(7)
面经(5)
高并发(7)
归档
标签
去牛客网
登录
/
注册
郝大侠
瓜娃子程序员
全部文章
/ 算法
(共9篇)
617. Merge Two Binary Trees
Input: Tree 1 Tree 2 1 2 / \ ...
2019-03-09
0
491
110. Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the d...
2019-03-09
0
417
104. Maximum Depth of Binary Tree
一棵树要么是空树,要么有两个指针,每个指针指向一棵树。树是一种递归结构,很多树的问题可以使用递归来处理。 Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum dept...
2019-03-09
0
512
215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example...
2019-03-08
0
643
524. Longest Word in Dictionary through Deleting(med)
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. ...
2019-03-06
0
593
88. Merge Sorted Array(Easy)
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Input: nums1 = [1,2,3,0,0,0], m = 3 nums2 = [2,5,6], n =...
2019-03-05
0
587
141. Linked List Cycle (Easy)-java
Given a linked list, determine if it has a cycle in it. Input: head =[3,2,0,-4], pos = 1 Output: true Explanation: There is a cycle in the linked list...
2019-03-05
0
545
2017年蓝桥杯省赛javaA组
1.标题:迷宫 X星球的一处迷宫游乐场建在某个小山坡上。 它是由10x10相互连通的小房间组成的。 房间的地板上写着一个很大的字母。 我们假设玩家是面朝上坡的方向站立,则: L表示走到左边的房间, R表示走到右边的房间, U表示走到上坡方向的房间, D表示走到下坡方向的房间。 X星球的居民有点...
2019-02-23
0
445
分治法
分治法 将一个规模为n的大问题,分解为k个独立且与原结构相同问题求解。 1、分解; 2、解决;递归解决子问题 3、合并。 排序算法(升序) 1、二路归并排序 分解:每次分两组,一直分到一个元素一组; 归并:相邻两(组)元素合并到一组并排序,直到完成。 2、快速排序 #includ...
2018-04-23
0
425