原文:[LeetCode] String Compression 字符串壓縮

Given an array of characters, compress itin place. The length after compression must always be smaller than or equal to the original array. Every element of the array should be acharacter not int of ...

2018-04-08 05:38 0 7430 推薦指數:

查看詳情

[LeetCode] Rotate String 旋轉字符串

We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. ...

Mon Jul 02 06:13:00 CST 2018 1 3545
[LeetCode] Interleaving String 交織相錯的字符串

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Example 2: 這道求交織相錯的字符串和之前那道 Word Break 的題很類似,就像 ...

Tue Feb 24 22:03:00 CST 2015 14 12425
[LeetCode] 394. Decode String 解碼字符串

Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets ...

Wed Sep 07 21:01:00 CST 2016 8 22220
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM