摘要: Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may ass 阅读全文
posted @ 2020-06-05 11:16 Schwifty 阅读(138) 评论(0) 推荐(0)
摘要: Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both 阅读全文
posted @ 2020-06-05 10:59 Schwifty 阅读(192) 评论(0) 推荐(0)
摘要: Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from the 阅读全文
posted @ 2020-06-05 03:25 Schwifty 阅读(82) 评论(0) 推荐(0)