文章 217
评论 7
浏览 146906
73. Set Matrix Zeroes

73. Set Matrix Zeroes

Given an m x n matrix. If an element is 0, set its entire row and column to 0. Do it in-place.

重排奇偶有序链表

重排奇偶有序链表

给定一个链表,其中奇数位是升序的,偶数位是降序的,实现链表的排序。

接口实现幂等的几种方式

接口实现幂等的几种方式

最近处理的单据业务经常会因为接口不幂等导致数据出错的情况。所以幂等性在设计系统的时候一定要考虑进去,尤其是像支付宝、银行、互联网金融公司等涉及的都是钱的系统,既要高效,也要准确,所以不能出现多扣款、多打款等问题,不然这样会很难处理,用户体验也不会好。

1496. Path Crossing

1496. Path Crossing

Return True if the path crosses itself at any point, that is, if at any time you are on a location you've previously visited. Return False otherwise.

680. Valid Palindrome II

680. Valid Palindrome II

Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.

Nothing just happens, it's all part of a plan.