世恭
世恭
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
世恭的博客
全部文章
(共3篇)
题解 | #寻找第K大#
public class Solution { public static int ans; public int findKth(int[] a, int n, int K) { quick(a,0,n-1,K); return ans; }...
Java
快速选择
分治
2021-11-25
0
272
题解 | #判断链表中是否有环#
* Definition for singly-linked list. * class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * ...
Java
2021-11-19
0
242
题解 | #最长回文子串#
import java.util.*; //中心扩散思想 public class Solution { public int getLongestPalindrome(String A, int n) { // write code here int ans...
Java
动态规划
2021-11-12
0
346