自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 Android11 应用中自定义服务实例化对象为null

解决应用中自定义服务实例化为null

2022-08-22 14:59:54 727 1

原创 206. Reverse Linked List

Reverse Linked ListGiven the head of a singly linked list, reverse the list, and return the reversed list.Example 1:Input: head = [1,2,3,4,5]Output: [5,4,3,2,1]Example 2:Input: head = [1,2]Output: [2,1]Example 3:Input: head = []Output: []Constra

2021-10-12 14:36:05 52

原创 21. Merge Two Sorted Lists

Merge Two Sorted ListsMerge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.Example 1:Input: l1 = [1,2,4], l2 = [1,3,4]Output: [1,1,2,3,4,4]Example 2:Input: l1 = []

2021-10-11 15:06:36 51

原创 141. Linked List Cycle

Linked List CycleGiven head, the head of a linked list, determine if the linked list has a cycle in it.There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, p

2021-10-09 10:22:56 57

原创 451. Sort Characters By Frequency

Sort Characters By FrequencyGiven a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string.Return the sorted string. If there are multiple answers, retu

2021-09-27 11:21:46 47

原创 387. First Unique Character in a String

First Unique Character in a StringGiven a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.Example 1:Input: s = “leetcode”Output: 0Example 2:Input: s = “loveleetcode”Output: 2Example 3:In

2021-09-24 17:58:40 73

原创 关于自定义Dialog遇到问题

问题1:弹窗的button点击没有响应1、在写自定义Dialog时,整个界面ui完成之后,弹窗也正常弹出,本来觉得成功了,然后在点击事件上翻车了,确认取消使用的button控件,怎么点都没有用,好像点击事件被屏蔽了,经过一顿苦闷的查询,发现在dialog窗体加入Button控件会卡UI,以至于没有响应。解决办法:将我自己原先的这个部分: setContentView(R.layout.dialog);改成:View view = this.getLayoutInflater().inflate

2021-07-20 11:02:12 379

原创 window下安装redis服务以及设置密码

window下安装redis服务装个redis,突然发现后台运行和改密码不会,这东西要用的时候疯狂找,记下来好找。安装好redis之后,不能开机自启,可以打开redis-server.exe的窗口启动,但窗口关闭后redis就关闭了步骤:1.打开dos进入redis目录下//安装redis服务2.输入:redis-server --service-install redis.windo...

2020-04-22 10:47:36 351

原创 图的操作和应用之景区信息管理系统

信息:现有一个景区,景区里面有若干个景点,景点之间满足以下条件:(1) 某些景点之间铺设了道路(相邻)(2) 这些道路都是可以双向行驶的(无向图)(3) 从任意一个景点出发都可以游览整个景区(连通图)开发景区信息管理系统,对景区的信息进行管理。使用图的数据结构来保存景区景点信息,为用户提供创建图、查询景点信息、旅游景点导航、搜索最短路径、铺设电路规划等功能。(1) 景点信息:景点编号...

2019-03-28 16:54:47 2944

转载 三位十进制加法器

三位十进制加法器

2019-02-28 13:18:52 2914 1

空空如也

空空如也

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

TA关注的人

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