自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (19)
  • 收藏
  • 关注

原创 网易编程题 塔

小易有一些立方体,每个立方体的边长为1,他用这些立方体搭了一些塔。现在小易定义:这些塔的不稳定值为它们之中最高的塔与最低的塔的高度差。小易想让这些塔尽量稳定,所以他进行了如下操作:每次从某座塔上取下一块立方体,并把它放到另一座塔上。注意,小易不会把立方体放到它原本的那座塔上,因为他认为这样毫无意义。现在小易想要知道,他进行了不超过k次操作之后,不稳定值最小是多少。输入描述:第一行两个数...

2019-07-31 21:34:35 186

原创 17. Letter Combinations of a Phone Number

class Solution { public List<String> letterCombinations(String digits) { if(digits.length() == 0){ return new ArrayList<>(); } String[][] digits_arr...

2019-07-26 22:13:52 88

原创 1026. Maximum Difference Between Node and Ancestor

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */class Solution { pub...

2019-07-25 21:42:06 117

原创 5132. Shortest Path with Alternating Colors

这题压根没看懂

2019-07-21 11:59:04 193

原创 5130. Number of Equivalent Domino Pairs

class Solution { public int numEquivDominoPairs(int[][] dominoes) { List<int[]> dom_list = new ArrayList<>(); for(int i = 0; i < dominoes.length; ++i){ d...

2019-07-21 11:58:32 157

原创 5133. Maximum of Absolute Value Expression

class Solution { public int maxAbsValExpr(int[] arr1, int[] arr2) { int sum = Integer.MIN_VALUE; for(int i = 0; i < arr1.length + 1; ++i){ for(int j = i + 1; j < ...

2019-07-21 11:57:48 224

原创 5131. Minimum Cost Tree From Leaf Values

这题没做出来

2019-07-21 11:56:45 125

原创 16. 3Sum Closest

class Solution { public int threeSumClosest(int[] nums, int target) { Arrays.sort(nums); int result = nums[0] + nums[1] + nums[2]; for(int i = 0; i < nums.length - 2; +...

2019-07-19 20:53:27 75

原创 105. Construct Binary Tree from Preorder and Inorder Traversal

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */class Solution { publ...

2019-07-18 20:59:25 61

原创 889. Construct Binary Tree from Preorder and Postorder Traversal

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */class Solution { pub...

2019-07-17 21:18:30 122

原创 106. Construct Binary Tree from Inorder and Postorder Traversal

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */class Solution { publ...

2019-07-17 21:17:24 72

原创 vscode上指定python解释器

事先已经安装好了vscode和anaconda,并在anaconda中已经安装了python环境1、安装Python extension如果没有安装Python extension,每次打开.py的文件的时候vscode会提示安装这个玩意。注意,这个玩意不是python解释器。安装之后这个还会提示安装pylint,接着安装(会让你选择用pip安装还是conda安装,我直接用conda安装的)...

2019-07-15 10:55:34 14248

原创 1110. Delete Nodes And Return Forest

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */class Solution { publ...

2019-07-07 14:57:04 215

原创 1109. Corporate Flight Bookings

class Solution { public int[] corpFlightBookings(int[][] bookings, int n) { int[] res_array = new int[n]; for(int[] mem : bookings){ for(int j = mem[0]; j <= mem[1];...

2019-07-07 14:56:26 230

原创 1095. Find in Mountain Array

/** * // This is MountainArray's API interface. * // You should not implement it, or speculate about its implementation * interface MountainArray { * public int get(int index) {} * public...

2019-07-07 14:55:33 198

原创 1093. Statistics from a Large Sample

class Solution { public double[] sampleStats(int[] count) { double min = -1; double max = -1; double mean = 0; double median = 0; double mode = 0; ...

2019-07-07 14:53:56 199

原创 15. 3Sum

class Solution { public List<List<Integer>> threeSum(int[] nums) { Arrays.sort(nums); List<List<Integer>> res_list = new ArrayList<>(); for(in...

2019-07-04 21:35:20 67

HTTP权威指南

高清版HTTP权威指南,带有标签。

2019-01-14

wpf地图显示

用wpf添加了必应地图,可以显示地图详细信息。。。。。。

2018-06-12

wpf显示波形图

wpf显示波形图,运用了LIveCharts这个开源控件,此代码是对github上代码的缩减

2018-06-12

wpf水波纹效果

从网上收集的关于图片水波纹的代码,里面用到了大神封装的类

2018-06-12

wpf中DataGrid数据双向绑定

实现了数据的双向绑定,更改DataGrid的数据会更新后台数据,更改后台数据会在DataGrid上实时显示。

2018-06-12

yeelink+stm32+18b20下位机

yeelink

2017-05-23

JXW_W5500+模块配套资料

JXW_W5500+模块配套资料

2017-05-23

YIXIN_W5500模块用户手册

YIXIN_W5500模块用户手册

2017-05-23

查看yeelink服务器变量(刷新)

查看yeelink服务器变量(刷新)

2017-05-20

控制yeelink服务器变量(原版)

控制yeelink服务器变量

2017-05-20

查看yeelink服务器变量

查看yeelink服务器变量

2017-05-20

控制yeelink服务器变量

控制yeelink服务器变量

2017-05-20

PLC------stm32程序

PLC stm32

2016-05-20

vc6.0(支持win7)

经典编程软件,初学者入门必备。国家计算机二级考试制定软件。

2015-03-30

c++数据结构与程序设计

c++语言,算法,数据结构,我实在说不出什么了

2015-03-17

80pin-XS128-Schematic.pdf

原理图 xs128 80个引脚,飞思卡尔常用的单片机之一

2014-08-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除