上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 64 下一页
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - 阅读全文
posted @ 2017-03-13 23:00 __Meng 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given a column title as appear in an Excel sheet, return its corresponding column number. For example: C++(3ms): 阅读全文
posted @ 2017-03-12 13:49 __Meng 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: C++(106ms): 使用unordered_ 阅读全文
posted @ 2017-03-09 17:17 __Meng 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i 阅读全文
posted @ 2017-03-08 22:57 __Meng 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Find the sum of all left leaves in a given binary tree. Example: C++(6ms): C++: 阅读全文
posted @ 2017-03-07 14:39 __Meng 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Given an integer, return its base 7 string representation. Example 1: Example 2: Java(15ms): 把一个6进制的数转成7进制 public String convertToBase7(int num) { ret 阅读全文
posted @ 2017-03-05 23:01 __Meng 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n  阅读全文
posted @ 2017-03-04 14:45 __Meng 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g 阅读全文
posted @ 2017-03-03 23:12 __Meng 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2017-03-02 20:45 __Meng 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
posted @ 2017-03-01 22:19 __Meng 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 64 下一页