2020年11月8日

328. Odd Even Linked List

摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文

posted @ 2020-11-08 19:39 wsw_seu 阅读(54) 评论(0) 推荐(0) 编辑

329. Longest Increasing Path in a Matrix(核心在于缓存遍历过程中的中间结果)

摘要: Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do 阅读全文

posted @ 2020-11-08 11:58 wsw_seu 阅读(96) 评论(0) 推荐(0) 编辑

451. Sort Characters By Frequency(桶排序)

摘要: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twi 阅读全文

posted @ 2020-11-08 10:48 wsw_seu 阅读(81) 评论(0) 推荐(0) 编辑

导航