摘要: Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a value (int) an 阅读全文
posted @ 2020-05-03 11:45 CNoodle 阅读(581) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2020-05-03 07:16 CNoodle 阅读(186) 评论(0) 推荐(0)
摘要: Given an m x n integer matrix heightMap representing the height of each unit cell in a 2D elevation map, return the volume of water it can trap after 阅读全文
posted @ 2020-05-03 06:57 CNoodle 阅读(222) 评论(0) 推荐(0)
摘要: In an infinite chess board with coordinates from -infinity to +infinity, you have a knight at square [0, 0]. A knight has 8 possible moves it can make 阅读全文
posted @ 2020-05-03 03:47 CNoodle 阅读(2156) 评论(0) 推荐(0)