摘要: 题目: 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 (size 阅读全文
posted @ 2016-04-25 21:07 CodingGirl121 阅读(122) 评论(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: begin to 阅读全文
posted @ 2016-04-25 16:50 CodingGirl121 阅读(147) 评论(0) 推荐(0)
摘要: 题目:Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. 阅读全文
posted @ 2016-04-25 16:28 CodingGirl121 阅读(126) 评论(0) 推荐(0)
摘要: 题目: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the neare 阅读全文
posted @ 2016-04-25 15:48 CodingGirl121 阅读(162) 评论(0) 推荐(0)
摘要: 题目: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tr 阅读全文
posted @ 2016-04-25 15:40 CodingGirl121 阅读(198) 评论(0) 推荐(0)
摘要: 题目:Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 题目解答: 这个题目是要求出给定的整数n的 阅读全文
posted @ 2016-04-25 15:24 CodingGirl121 阅读(117) 评论(0) 推荐(0)