摘要: 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 阅读全文
posted @ 2021-10-22 20:56 Sempron2800+ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-10-22 20:42 Sempron2800+ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 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 / 阅读全文
posted @ 2021-10-22 08:52 Sempron2800+ 阅读(31) 评论(0) 推荐(0) 编辑