摘要:
Java版代码,leetcode地址: 1 class Solution { 2 public int maxProfit(int[] prices) { 3 int min_price = Integer.MAX_VALUE; 4 int maxprofit = 0; 5 int l = pric 阅读全文
摘要:
java版代码,leetcode地址: 1 class Solution { 2 public int maxValue(int[][] grid) { 3 int m = grid.length; 4 int n = grid[0].length; 5 int[][] dp = new int[m 阅读全文
摘要:
C#: 1 public class demo01 2 { 3 public void test01() 4 { 5 //数组的长度是.Length 6 int[] ary = new int[] { 1, 2, 3 }; 7 Console.WriteLine(ary.Length); 8 9 / 阅读全文