摘要: link /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ /** * 阅读全文
posted @ 2020-03-01 20:01 feibilun 阅读(194) 评论(0) 推荐(0) 编辑
摘要: link Solution 1 : min cost flow Break each cell into two nodes i and i', connect i to i' (i+mn) with an edge with flow 1, cost 0. For each cell i, con 阅读全文
posted @ 2020-03-01 15:06 feibilun 阅读(149) 评论(0) 推荐(0) 编辑