摘要: 1 package solution41; 2 import java.util.Stack; 3 class Solution { 4 public int solution(String str) { 5 Stack<Character> S = new Stack<Character>(); 阅读全文
posted @ 2020-03-06 18:19 Sempron2800+ 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 package solution39; 2 3 class Solution { 4 public int solution(String s1,String s2) { 5 int n1 = s1.length(); 6 int n2 = s2.length(); 7 int count = 阅读全文
posted @ 2020-03-06 10:20 Sempron2800+ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 package solution37; 2 3 class Solution { 4 public int solution(int n,int[] a) { 5 int[] preSum = new int[n+1]; 6 for(int i=1;i<=n;i++){ 7 preSum[i] 阅读全文
posted @ 2020-03-06 08:37 Sempron2800+ 阅读(127) 评论(0) 推荐(0) 编辑