摘要: Write a SQL query to get the second highest salary from theEmployeetable.+----+--------+| Id | Salary |+----+--------+| 1 | 100 || 2 | 200 || ... 阅读全文
posted @ 2015-06-24 16:06 可爱的波儿胖 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目:题目太长了,见链接-- >The Skyline ProblemNotes:The number of buildings in any input list is guaranteed to be in the range[0, 10000].The input list is alread... 阅读全文
posted @ 2015-06-21 16:31 可爱的波儿胖 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 题目:Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired byt... 阅读全文
posted @ 2015-06-20 12:29 可爱的波儿胖 阅读(371) 评论(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.to... 阅读全文
posted @ 2015-06-20 11:40 可爱的波儿胖 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or mi... 阅读全文
posted @ 2015-06-20 11:24 可爱的波儿胖 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 题目:Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, exc... 阅读全文
posted @ 2015-06-19 11:34 可爱的波儿胖 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you ca... 阅读全文
posted @ 2015-06-18 21:46 可爱的波儿胖 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-06-18 09:55 可爱的波儿胖 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题目:Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be chan... 阅读全文
posted @ 2015-06-14 14:05 可爱的波儿胖 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max... 阅读全文
posted @ 2015-06-08 20:21 可爱的波儿胖 阅读(199) 评论(0) 推荐(0) 编辑

友情链接 : CodeForge源码分享