Coder789
Coder789
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Coder789的博客
全部文章
/ 题解
(共31篇)
题解 | #反转字符串#
import java.util.*; public class Solution { /** * 反转字符串 * @param str string字符串 * @return string字符串 */ public String sol...
Java
2021-09-24
0
250
题解 | #子数组的最大累加和问题#
import java.util.*; public class Solution { /** * max sum of the subarray * @param arr int整型一维数组 the array * @return int整型 *...
Java
2021-09-24
0
393
题解 | #寻找第K大#
import java.util.*; public class Solution { public int findKth(int[] a, int n, int k) { // write code here return findK(a, 0, n -...
Java
2021-09-24
0
694
题解 | #实现二叉树先序,中序和后序遍历#
import java.util.*; import java.util.*; /* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * } *...
Java
2021-09-24
0
360
题解 | #合并两个有序的数组#
public class Solution { public void merge(int A[], int m, int B[], int n) { int c = m + n - 1; int a = m - 1, b = n - 1; w...
Java
2021-09-24
0
303
题解 | #寻找第K大#
import java.util.*; public class Solution { public int findKth(int[] a, int n, int k) { // write code here return findK(a, 0, n -...
Java
2021-09-24
0
431
题解 | #寻找第K大#
import java.util.*; public class Solution { public int findKth(int[] a, int n, int k) { // write code here return findK(a, 0, n -...
Java
2021-09-24
0
297
题解 | #寻找第K大#
import java.util.*; public class Solution { public int findKth(int[] a, int n, int k) { // write code here return findKth(a, 0, n...
Java
2021-09-24
0
442
题解 | #写一段程序判断IP字符串是否属于内网IP#
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ...
Java
2021-09-23
0
457
题解 | #比较两个版本字符串version1和version2#
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ...
Java
2021-09-23
0
827
首页
上一页
1
2
3
4
下一页
末页