摘要: In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any n 阅读全文
posted @ 2018-09-25 16:52 bernieloveslife 阅读(125) 评论(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 @ 2018-09-25 16:39 bernieloveslife 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-09-25 16:28 bernieloveslife 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given a 32 bit signed integer, reverse digits of an integer. Note: Assume we are dealing with an environment which could only store integers within th 阅读全文
posted @ 2018-09-25 16:10 bernieloveslife 阅读(83) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2018-09-25 15:41 bernieloveslife 阅读(149) 评论(0) 推荐(0) 编辑