- 博客(10)
- 资源 (9)
- 收藏
- 关注
原创 [LeetCode][数组]best time to buy and sell stockII
1.题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, ...
2019-05-26 09:06:40 64
原创 [LeetCode][数组搜索]search a 2D matrix[java]
1.题目Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from left to right. The first integer of...
2019-05-24 11:19:53 51
原创 [LeetCode][链表翻转]reverse nodes in k group【java】
1.题目Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-out nodes in the end should remain as i...
2019-05-24 10:11:31 106
原创 [LeetCode][链表]remove nth node from end of list java
1.题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second nod...
2019-05-22 23:58:59 52
原创 [LeetCode][链表分区]partition-list java
1.题目:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the original relative order of the nodes in ea...
2019-05-22 23:27:27 128
原创 [LeetCode][链表去重]remove duplicates from sorted list (java)
1.题目:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, return1->2->3....
2019-05-20 10:58:35 271
原创 [LeetCode][环型链表]linked-list-cycle(java) 链表中环的入口结点 判断是否是环形链表
1.题:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?解析:一开始拿到这个题目我竟然没有看懂;自己的思路可能判断环形链表,需要前后指针,(思维固化)直接看了别人的思路,发现判断环形链表可以定义两个指针:快指针,慢指针...
2019-05-19 10:11:16 136
原创 [LeetCode][链表easy]swap-nodes-in-pairs(java)
1.题目Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algorithm should use only ...
2019-05-18 10:50:12 93
原创 [LeetCode][链表easy]merge-two-sorted-lists(java)
1.题目:链接:https://www.nowcoder.com/questionTerminal/a479a3f0c4554867b35356e0d57cf03d来源:牛客网Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together ...
2019-05-17 10:36:39 169
原创 刷LeetCode
1.按类别做2.高校ACM和LeetCode的区别 找不到solution类3.做完每题记录一下解决这个问题的过程,以及总结属于什么类,有什么套路4.记录刷题的时候的错误参考:https://jinx19.github.io/2017/10/12/LeetCode-Solution-LeetCode%E5%88%B7%E9%A2%98%E6%8A%80%E5%B7%A7/...
2019-05-16 15:54:02 267
关于vue-cli使用本地API代理解决跨域问题的整个流程
2018-08-15
MyEclipse2015破解安装文档
2017-12-18
adt-bundle-windows-x86_64-20131030+jdk1.7
2017-06-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人