2020年8月31日

摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2020-08-31 13:31 Jain_Shaw 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 给出一个字符串str,要求按照字符出现的频率,降序打印出来,比如如下结果: 输入:ahinfhhaaahgiajrbgjbsgbaa 输出:aaaaaaahhhhbbbgggiijjrsfn 在统计字符串出现的频率时,我们很容易便想到利用Map:Map中的key可以用来存放出现的字符,value可以 阅读全文
posted @ 2020-08-31 09:31 Jain_Shaw 阅读(1030) 评论(0) 推荐(0) 编辑

导航