01 2021 档案

摘要:集成开发工具(IDE):Intellij IDEA 服务器:Tomcat 负载均衡:Nginx web层框架:Spring MVC 服务层框架:Spring 持久层框架:MyBatis、JPA 数据库:MySql、Redis 项目构建:Maven 持续集成:Jenkins 版本控制:SVN、Git 阅读全文
posted @ 2021-01-24 11:28 叁柒零壹
摘要:# 安装zsh sudo apt-get install zsh # 国内镜像https://gitee.com/mirrors/oh-my-zsh 可修改install.sh中仓库指向 sh -c "$(curl -fsSL https://raw.githubusercontent.com/oh 阅读全文
posted @ 2021-01-23 11:57 叁柒零壹
摘要:232 用栈实现队列 class MyQueue { private Stack<Integer> stack1 = new Stack<>(); private Stack<Integer> stack2 = new Stack<>(); /** Initialize your data stru 阅读全文
posted @ 2021-01-16 21:13 叁柒零壹
摘要:344 反转字符串 //java中没有swap库函数 class Solution { public void reverseString(char[] s) { for (int i = 0, j = s.length - 1; i < s.length / 2; i++, j--) { char 阅读全文
posted @ 2021-01-14 17:49 叁柒零壹
摘要:242 有效的字母异位词 class Solution { public boolean isAnagram(String s, String t) { int[] record = new int[26]; for (int i = 0; i < s.length(); i++) { record 阅读全文
posted @ 2021-01-13 11:15 叁柒零壹
摘要:203 移除链表元素 //链表的节点删除通过前一个节点来移除当前节点 class Solution { public ListNode removeElements(ListNode head, int val) { ListNode dummyHead = new ListNode(0); dum 阅读全文
posted @ 2021-01-12 17:48 叁柒零壹
摘要:35 搜索插入位置 //二分法 class Solution { public int searchInsert(int[] nums, int target) { int left = 0; int right = nums.length - 1; while (left <= right) { 阅读全文
posted @ 2021-01-12 10:50 叁柒零壹
摘要:509 斐波那契数列 class Solution { public int fib(int n) { int[] dp = new int[n+1]; if (n <= 1) { return n; } dp[0] = 0; dp[1] = 1; for (int i = 2; i <= n; i 阅读全文
posted @ 2021-01-12 10:07 叁柒零壹