avatar
有没有洗衣液的deal# PennySaver - 省钱一族
j*r
1
Question: Implement a Codec.
=> =>
Abckkkkkkkkkkks55p=> Abc11xk55p => Abckkkkkkkkkkks55p
也就是说,对于两个以上的重复字符,编码成
[n]x[c] where n is the repetition count and c is the actual
character,
比如以上的11为k的重复数,x是特殊字符,k是重复的字符。
中间会有special case, 比如:
Abc5xp, If you directly output above sequence, the decoder could decode it
as:
Abcppppp,
这种情况你应如何处理.
avatar
c*n
2
家里的洗衣液快用完了,请教版上的大牛哪儿有便宜的卖?
avatar
a*e
3
两个问题
1. Abckkkkkkkkkkks55p=> Abc11xk55p => Abckkkkkkkkkkks55p
55前面的s去哪里了? 是typo么?
2. Abc5xp这个不就是应该decode成Abcppppp么?
我猜你想问的问题是这个吧?
如果原来字符串就是Abc5xp的话,要encode成什么?
avatar
l*g
4
ra, cvs这周小罐tide都是5.99

【在 c***n 的大作中提到】
: 家里的洗衣液快用完了,请教版上的大牛哪儿有便宜的卖?
avatar
b*m
5

encode是对x特殊处理,转成1xx
数字也要特殊处理,5-> 1x5.
aa51x -> 2xa1x51x11xx

【在 j********r 的大作中提到】
: Question: Implement a Codec.
: => =>
: Abckkkkkkkkkkks55p=> Abc11xk55p => Abckkkkkkkkkkks55p
: 也就是说,对于两个以上的重复字符,编码成
: [n]x[c] where n is the repetition count and c is the actual
: character,
: 比如以上的11为k的重复数,x是特殊字符,k是重复的字符。
: 中间会有special case, 比如:
: Abc5xp, If you directly output above sequence, the decoder could decode it
: as:

avatar
o*o
6
同问cvs,sfw之外的丢。
avatar
j*r
7

[jobhangter] yes, it's typo, should be:
1. Abckkkkkkkkkkks55p=> Abc11xks55p => Abckkkkkkkkkkks55p
[jobhangter] Yes, what if the source string is Abc5xp, how do you encode it
. especially how to write code to handle the special cases.

【在 a******e 的大作中提到】
: 两个问题
: 1. Abckkkkkkkkkkks55p=> Abc11xk55p => Abckkkkkkkkkkks55p
: 55前面的s去哪里了? 是typo么?
: 2. Abc5xp这个不就是应该decode成Abcppppp么?
: 我猜你想问的问题是这个吧?
: 如果原来字符串就是Abc5xp的话,要encode成什么?

avatar
c*a
8
同问~~~~
avatar
c*n
9
thanks a lot
avatar
z*q
10
请问这个价钱算好吗?

【在 l********g 的大作中提到】
: ra, cvs这周小罐tide都是5.99
avatar
J*o
11
Kroger或者其连锁店现在小罐的4.99,买4个再省4块,周日报纸上面还有1块的coupon
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。