摘要:
https://www.nowcoder.com/practice/4c776177d2c04c2494f2555c9fcc1e49?tpId=13&tqId=11173&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/ 阅读全文
posted @ 2018-07-27 13:41
buptyuhanwen
阅读(97)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/9b4c81a02cd34f76be2659fa0d54342a?tpId=13&tqId=11172&tPage=1&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/ 阅读全文
posted @ 2018-07-27 13:36
buptyuhanwen
阅读(161)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/564f4c26aa584921bc75623e48ca3011?tpId=13&tqId=11171&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2018-07-27 13:25
buptyuhanwen
阅读(180)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/6e196c44c7004d15b1610b9afca8bd88?tpId=13&tqId=11170&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:21
buptyuhanwen
阅读(121)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/d8b6b4358f774294a89de2a6ac4d9337?tpId=13&tqId=11169&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:18
buptyuhanwen
阅读(83)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/75e878df47f24fdc9dc3e400ec6058ca?tpId=13&tqId=11168&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:17
buptyuhanwen
阅读(80)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/529d3ae5a407492994ad2a246518148a?tpId=13&tqId=11167&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:11
buptyuhanwen
阅读(107)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/beb5aa231adc45b2a5dcc5b62c93f593?tpId=13&tqId=11166&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:06
buptyuhanwen
阅读(222)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/1a834e5e3e1a4b7ba251417554e07c00?tpId=13&tqId=11165&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 13:05
buptyuhanwen
阅读(159)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/8ee967e43c2c4ec193b040ea7fbb10b8?tpId=13&tqId=11164&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews% 阅读全文
posted @ 2018-07-27 12:48
buptyuhanwen
阅读(100)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6?tpId=13&tqId=11163&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question 阅读全文
posted @ 2018-07-27 12:41
buptyuhanwen
阅读(217)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/22243d016f6b47f2a6928b4313c85387?tpId=13&tqId=11162&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question 阅读全文
posted @ 2018-07-27 12:40
buptyuhanwen
阅读(304)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/8c82a5b80378478f9484d87d1c5f12a4?tpId=13&tqId=11161&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question 阅读全文
posted @ 2018-07-27 12:39
buptyuhanwen
阅读(189)
评论(0)
推荐(0)
摘要:
题意 分析 简单的动态规划,使用两个临时变量保存。 代码 public class Solution { public int Fibonacci(int n) { if(n<=0)return 0; if(n==1||n==2)return 1; int index = 3; int pre=1; 阅读全文
posted @ 2018-07-27 12:37
buptyuhanwen
阅读(139)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/9f3231a991af4f55b95579b44b7a01ba?tpId=13&tqId=11159&rp=1&ru=/ta/coding-interviews&qru=/ta/coding-interviews/question 阅读全文
posted @ 2018-07-27 12:28
buptyuhanwen
阅读(154)
评论(0)
推荐(0)
摘要:
题意 给了两个栈去实现队列 分析 两个栈如下情况 1 2 4 3 这个时候就不能够把4插入到第二个弹出栈了否则弹出顺序出错。 所以这个时候就应该等第二个栈空了的时候再弹出。 代码 import java.util.Stack; public class Solution { Stack<Intege 阅读全文
posted @ 2018-07-27 12:27
buptyuhanwen
阅读(90)
评论(0)
推荐(0)
摘要:
https://www.nowcoder.com/practice/8a19cbe657394eeaac2f6ea9b0f6fcf6?tpId=13&tqId=11157&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2018-07-27 12:24
buptyuhanwen
阅读(88)
评论(0)
推荐(0)
摘要:
题意 分析 代码 import java.util.*; public class Solution{ public ArrayList<Integer> printListFromTailToHead(ListNode listNode) { ArrayList<Integer> array = 阅读全文
posted @ 2018-07-27 12:24
buptyuhanwen
阅读(96)
评论(0)
推荐(0)
摘要:
题意 将空格替换成'%20' 分析 代码 public class Solution { public String replaceSpace(StringBuffer str) { StringBuffer s = new StringBuffer(); char[] ch = str.toStr 阅读全文
posted @ 2018-07-27 12:21
buptyuhanwen
阅读(83)
评论(0)
推荐(0)