凉凉201906231035377
凉凉201906231035377
全部文章
题解
归档
标签
去牛客网
登录
/
注册
凉凉201906231035377的博客
全部文章
/ 题解
(共3篇)
题解 | #链表的奇偶重排#
public class Solution { /** 用双指针 */ public ListNode oddEvenList (ListNode head) { // write code here if(head==null) return null; ListNode ...
2021-05-03
0
498
题解 | #缺失数字#
public class Solution { public int solve (int[] a) { // write code here int count=0; for(int i=0;i<a.length;i++){ if(a[i]!=i) ...
2021-05-02
0
405
题解 | #反转数字#
public int reverse (int x){ // write code here long y=0; while(x!=0){ y=y*10+x%10; x=x/10; } return (int)y; }
2021-04-28
0
402