摘要:
public ListNode deleteDuplicates (ListNode head) { // write code here ListNode cur=head; while(cur!=null){ while(cur.next!=null&&cur.val==cur.next.val 阅读全文
posted @ 2023-11-22 21:55
Chenyi_li
阅读(16)
评论(0)
推荐(0)
摘要:
链表逆置 public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListNode类 * @return ListNode类 */ public ListNode ReverseList 阅读全文
posted @ 2023-11-22 16:24
Chenyi_li
阅读(15)
评论(0)
推荐(0)
摘要:
import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); public voi 阅读全文
posted @ 2023-11-22 15:32
Chenyi_li
阅读(14)
评论(0)
推荐(0)
摘要:
层次遍历 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int v 阅读全文
posted @ 2023-11-22 11:46
Chenyi_li
阅读(13)
评论(0)
推荐(0)
摘要:
jdbc和Mybatis的区别? JDBC(Java Database Connectivity)和 MyBatis(也称为 iBatis)都是用于在 Java 应用程序中访问数据库的工具,但它们有一些重要的区别。 抽象程度: 1.JDBC: 是 Java 标准库的一部分,提供了一组用于执行 SQL 阅读全文
posted @ 2023-11-22 09:27
Chenyi_li
阅读(437)
评论(0)
推荐(0)

浙公网安备 33010602011771号