
力扣算法
力扣题库中的算法题
是啊秋啊
这个作者很懒,什么都没留下…
展开
-
LeetCode(力扣)算法14号问题
package LeetCode;public class TestNum14 { public static void main(String[] args) { String[] strs= {"flower","flow","flight"}; TestNum14 str = new TestNum14(); System.out.println(str.longestCommonPrefix(strs)); } publi.原创 2021-12-02 17:24:24 · 169 阅读 · 0 评论 -
LeetCode(力扣)算法203号问题
public ListNode removeElements(ListNode head,int val){ if(head==null){ return null; } head.next=removeElements(head.next,val); if (head.val==val){ return head.next; } return head; .原创 2021-12-02 17:20:17 · 549 阅读 · 0 评论