
字符串
鸡蛋豆腐仙子
从本科开始讨厌了单片机 晶体管 编程 c++5-6年后,发现技术就是我的真爱,再重新选择一次,我还是会选择当程序员。我现在觉得自己什么都不会,可是还是相信会变成别人仰望的大神。
展开
-
【刷题】Leetcode 394 decode string
用栈 public class Solution { public String decodeString(String s) { String res = ""; Stack<Integer> countStack = new Stack<>(); Stack<String> resStack = new Stack<>(); int idx = 0; while (id原创 2020-10-08 14:59:04 · 97 阅读 · 0 评论 -
【刷题】Leetcode 459. Repeated Substring Pattern
Example 1: Input: “abab” Output: True Explanation: It’s the substring “ab” twice. Example 2: Input: “aba” Output: False 暴力法: public boolean repeatedSubstringPattern(String str) { int l = str.length()...原创 2019-12-06 16:04:18 · 169 阅读 · 0 评论