09 2019 档案
摘要:quicksort是一个comparison-based的排序算法(heap sort,merge sort,插入都是)
阅读全文
摘要:import java.util.* import kotlin.collections.HashMap /** * 1161. Maximum Level Sum of a Binary Tree * https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/description/ * */ class Tree...
阅读全文
摘要:package LeetCode_3 import java.lang.StringBuilder /** * 3. Longest Substring Without Repeating Characters * https://leetcode.com/problems/longest-subs
阅读全文
摘要:/** * 905. Sort Array By Parity * https://leetcode.com/problems/sort-array-by-parity/description/ * * Given an array A of non-negative integers, return an array consisting of all the even elements of
阅读全文
摘要:/** 48. Rotate Image https://leetcode.com/problems/rotate-image/description/ */ class Solution { public void rotate(int[][] matrix) { //N x N matrix have floor(N/2) square cycers, for example 4x4 matr
阅读全文
摘要:在ubuntu系统下,更新android studio 3.5时,提示 jre/bin/java没写权限,发现解决方法如下: https://askubuntu.com/questions/1083125/android-studio-update-issue-with-jre-bin-java
阅读全文