摘要: 题目描述: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the las 阅读全文
posted @ 2016-02-05 21:57 scottwang 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corne 阅读全文
posted @ 2016-02-05 21:04 scottwang 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] an 阅读全文
posted @ 2016-02-05 20:25 scottwang 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目描述: everse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), 阅读全文
posted @ 2016-02-05 19:16 scottwang 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (si 阅读全文
posted @ 2016-02-05 12:42 scottwang 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 阅读全文
posted @ 2016-02-05 10:49 scottwang 阅读(275) 评论(0) 推荐(0) 编辑