上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: Write a SQL query to get the nth highest salary from the Employee table. + + + | Id | Salary | + + + | 1 | 100 | | 2 | 200 | | 3 | 300 | + + + For exa 阅读全文
posted @ 2020-02-11 18:22 hyx1 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to get the second highest salary from the Employee table. + + + | Id | Salary | + + + | 1 | 100 | | 2 | 200 | | 3 | 300 | + + + For 阅读全文
posted @ 2020-02-11 18:05 hyx1 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Table: Person + + + | Column Name | Type | + + + | PersonId | int | | FirstName | varchar | | LastName | varchar | + + + PersonId is the primary key c 阅读全文
posted @ 2020-02-11 17:21 hyx1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' 阅读全文
posted @ 2020-02-02 21:23 hyx1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 题目描述 大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项(从0开始,第0项为0)。 n<=39 1 public class Solution { 2 public int Fibonacci(int n) { 3 if (n == 0) return 0; 4 if 阅读全文
posted @ 2020-01-31 20:34 hyx1 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目描述 用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。 1 import java.util.Stack; 2 3 public class Solution { 4 Stack<Integer> stack1 = new Stack<Integer>(); 阅读全文
posted @ 2020-01-31 20:24 hyx1 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定一个二叉树和其中的一个结点,请找出中序遍历顺序的下一个结点并且返回。注意,树中的结点不仅包含左右子结点,同时包含指向父结点的指针。 1 /* 2 public class TreeLinkNode { 3 int val; 4 TreeLinkNode left = null; 5 T 阅读全文
posted @ 2020-01-31 20:05 hyx1 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。 1 /** 2 * Definition for b 阅读全文
posted @ 2020-01-30 20:42 hyx1 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 栈 1 /** 2 * public class ListNode { 3 * int val; 4 * ListNode next = null; 5 * 6 * ListNode(int val) { 7 * this.v 阅读全文
posted @ 2020-01-30 19:05 hyx1 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Input: "babad" Output: 阅读全文
posted @ 2020-01-28 20:58 hyx1 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页