摘要:
背景: 最近项目中使用SpringMVC,需要从前端接收JSON格式的请求,在后端自动转成一个与JSON格式相同的对象。 由于是一个老项目,Spring的版本是3.2.7。 问题:POST or GET 这个请求,是一个计算类型的请求,不涉及数据的修改,从意义上来说的角度应该是一个 GET 请求。 阅读全文
摘要:
问题: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spac 阅读全文
摘要:
问题: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k th 阅读全文
摘要:
问题: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Y 阅读全文
摘要:
问题: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 官方难度: Hard 翻译: 合并k个已排序的链表,得到一个新的链表并且返回其第一个节点。分析 阅读全文