01 2023 档案

摘要:面试题45. 把数组排成最小的数 思路 使用到了快速排序 class Solution { public String minNumber(int[] nums) { // 初始化字符串数组 String[] strs = new String[nums.length]; // 循环添加 for(i 阅读全文
posted @ 2023-01-05 22:56 Vincy9501 阅读(16) 评论(0) 推荐(0) 编辑
摘要:12. 矩阵中的路径 思路 DFS+回溯 class Solution { public boolean exist(char[][] board, String word) { for(int i = 0; i < board.length; i++){ for(int j = 0; j < bo 阅读全文
posted @ 2023-01-05 15:54 Vincy9501 阅读(13) 评论(0) 推荐(0) 编辑
摘要:18. 删除链表的节点 思路 class Solution { public ListNode deleteNode(ListNode head, int val) { if(head == null) return null; if(head.val == val) return head.nex 阅读全文
posted @ 2023-01-03 00:38 Vincy9501 阅读(16) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩