Redian新闻
>
origin free shipping for any purchase.
avatar
origin free shipping for any purchase.# Fashion - 美丽时尚
s*r
1
脑子短路,看不出来问题。。。
Leetcode online prolem.
Longest Substring Without Repeating Characters
class Solution {
public:
int lengthOfLongestSubstring(string s) {
//e.g. a b c d a e d


int N = s.size();
if (N <= 1) return N;
int i = 0, j = 0;
unordered_set dict; // table
int maxLen = 0;
while (j < N) {
if (dict.find(s[j]) != dict.end()) { //find duplicate
maxLen = max(maxLen, j-i);
dict.clear(); //reset table
i = j;
} else {
dict.insert(s[j]);
++j;
}
}
maxLen = max(maxLen, j-i);
return maxLen;
}
};
avatar
z*l
2
courtesy of DCjumper:
I have been a discover credit card holder since 2002.
During my entire card membership with the company,
I was never late with my monthly payments, always stayed
under my credit line, and never charged my credit card for any purposes
other than making a legitimate purchase.
This was my first credit card that established my credit history as of 2002.
About a week ago, without any warning and notice in advance, the company
closed my account and thereby wiped out my 12 years of credit history
associated with Discover card. I contacted the company and demanded for an
answer. Other than the excuse that "we are no longer able to meet your
servicing needs," the company never gave me a forthcoming response.
Upon the discussion I had with other cardholders and information I learned
from the internet, I have a reasonable belief that the closing was targeted
at a large number of cardholders with a particular racial and ethnic
background (more specifically, Chinese Americans) without a just ground. I
believe that CFPB is or will be getting more similar complaints in the near
future.
I respectfully urge the CFPB to take this matter seriously and to look into
this case. We consumers are powerless to protect ourselves from
discriminatory actions like this. But if the closing was indeed motivated
by racial bias, the company's action has to be put to an end.
Thank you.
avatar
h*y
3
虽然不抱有什么希望 但还是问问
avatar
o*o
4
valid through 7/15
avatar
d*e
5
这个程序不知道在干吗。
1. dict的[]应该是O(log n)吧
2. dict clear应该是o(n)的吧。
程序复杂度大概是o(n^2)?




【在 s******r 的大作中提到】
: 脑子短路,看不出来问题。。。
: Leetcode online prolem.
: Longest Substring Without Repeating Characters
: class Solution {
: public:
: int lengthOfLongestSubstring(string s) {
: //e.g. a b c d a e d
:
:
: int N = s.size();

avatar
l*6
6
大赞,发那个地址或邮箱哇?
avatar
Y*r
7
老三家后院???

【在 h******y 的大作中提到】
: 虽然不抱有什么希望 但还是问问
avatar
s*r
8
就是找最长的不带重复字符的字串啊。
嗯,worst case复杂度是O(N^2).

【在 d******e 的大作中提到】
: 这个程序不知道在干吗。
: 1. dict的[]应该是O(log n)吧
: 2. dict clear应该是o(n)的吧。
: 程序复杂度大概是o(n^2)?
:
:
:

avatar
g*u
10
Last week we saw quite some on the trails in Palos Verdes
avatar
s*r
11
题目描述是这个:
Given a string, find the length of the longest substring without repeating
characters. For example, the longest substring without repeating letters for
"abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest
substring is "b", with the length of 1.
avatar
m*a
12
I has been....

2002.

【在 z****l 的大作中提到】
: courtesy of DCjumper:
: I have been a discover credit card holder since 2002.
: During my entire card membership with the company,
: I was never late with my monthly payments, always stayed
: under my credit line, and never charged my credit card for any purposes
: other than making a legitimate purchase.
: This was my first credit card that established my credit history as of 2002.
: About a week ago, without any warning and notice in advance, the company
: closed my account and thereby wiped out my 12 years of credit history
: associated with Discover card. I contacted the company and demanded for an

avatar
T*e
13
老三家

【在 h******y 的大作中提到】
: 虽然不抱有什么希望 但还是问问
avatar
c*u
14
你在找到重复之后应该吧i设成重复字符的下一位?像 a b c d a e d 应该是bcdae,
而按这个方法是abcd




【在 s******r 的大作中提到】
: 脑子短路,看不出来问题。。。
: Leetcode online prolem.
: Longest Substring Without Repeating Characters
: class Solution {
: public:
: int lengthOfLongestSubstring(string s) {
: //e.g. a b c d a e d
:
:
: int N = s.size();

avatar
w*g
15
写的好,顶一个。这就去file a complaint。

2002.

【在 z****l 的大作中提到】
: courtesy of DCjumper:
: I have been a discover credit card holder since 2002.
: During my entire card membership with the company,
: I was never late with my monthly payments, always stayed
: under my credit line, and never charged my credit card for any purposes
: other than making a legitimate purchase.
: This was my first credit card that established my credit history as of 2002.
: About a week ago, without any warning and notice in advance, the company
: closed my account and thereby wiped out my 12 years of credit history
: associated with Discover card. I contacted the company and demanded for an

avatar
t*7
16
At Los olivers
avatar
s*y
17
改两行:
class Solution {
public:
int lengthOfLongestSubstring(string s) {
int N = s.size();
if (N <= 1) return N;
int i = 0, j = 0;
unordered_set dict; // table
int maxLen = 0;
while (j < N) {
if (dict.find(s[j]) != dict.end()) { //find duplicate
maxLen = max(maxLen, j-i);
while(s[i]!=s[j]) dict.erase(s[i++]);
dict.erase(s[i++]);
} else {
dict.insert(s[j]);
++j;
}
}
maxLen = max(maxLen, j-i);
return maxLen;
}
};
avatar
l*n
18
有没有翻看discover当年申请卡的条款,里面应该有说discover有随时终止你服务的权
利吧。
avatar
h*y
19
已经盛开了吗?花的面积大概有多大?谢谢

【在 g******u 的大作中提到】
: Last week we saw quite some on the trails in Palos Verdes
avatar
s*r
20
感谢chillyyutou和sailorjay两位。
两位一解释我想明白 原来程序的逻辑错了
i 跳得太快了
avatar
w*g
21
那我们也有complain的权利啊。终止服务没有问题,但是如果这个决定是基于种族或者
其他不合理的理由,这也是不行的。

【在 l*****n 的大作中提到】
: 有没有翻看discover当年申请卡的条款,里面应该有说discover有随时终止你服务的权
: 利吧。

avatar
t*e
22
cherry valley 有
avatar
d*f
23
doesn't matter, if discover closes all Chinese, then it is discrimination.
Of coz there is no way to prove that now unless a class lawsuit is filed.

【在 l*****n 的大作中提到】
: 有没有翻看discover当年申请卡的条款,里面应该有说discover有随时终止你服务的权
: 利吧。

avatar
g*u
24
开得很好,大片野的薰衣草,不是花田那种。

【在 h******y 的大作中提到】
: 已经盛开了吗?花的面积大概有多大?谢谢
avatar
z*l
25
my bad when revising the original, just corrected it.

an

【在 m*****a 的大作中提到】
: I has been....
:
: 2002.

avatar
l*e
26
昨天喝了一杯薰衣草的奶茶,卖奶茶的姑娘真漂亮
avatar
a*0
27
:-)

【在 z****l 的大作中提到】
: my bad when revising the original, just corrected it.
:
: an

avatar
r*c
28
where?

【在 l*****e 的大作中提到】
: 昨天喝了一杯薰衣草的奶茶,卖奶茶的姑娘真漂亮
avatar
w*u
29

2002.

【在 z****l 的大作中提到】
: courtesy of DCjumper:
: I have been a discover credit card holder since 2002.
: During my entire card membership with the company,
: I was never late with my monthly payments, always stayed
: under my credit line, and never charged my credit card for any purposes
: other than making a legitimate purchase.
: This was my first credit card that established my credit history as of 2002.
: About a week ago, without any warning and notice in advance, the company
: closed my account and thereby wiped out my 12 years of credit history
: associated with Discover card. I contacted the company and demanded for an

avatar
s*e
30
喝吐过

【在 l*****e 的大作中提到】
: 昨天喝了一杯薰衣草的奶茶,卖奶茶的姑娘真漂亮
avatar
f*s
31
怎么用?

2002.

【在 z****l 的大作中提到】
: courtesy of DCjumper:
: I have been a discover credit card holder since 2002.
: During my entire card membership with the company,
: I was never late with my monthly payments, always stayed
: under my credit line, and never charged my credit card for any purposes
: other than making a legitimate purchase.
: This was my first credit card that established my credit history as of 2002.
: About a week ago, without any warning and notice in advance, the company
: closed my account and thereby wiped out my 12 years of credit history
: associated with Discover card. I contacted the company and demanded for an

avatar
s*s
32
123 Farm
可以顺便采樱桃
avatar
M*r
33
方博士,建议先说一句话来总结一下你要干什么,不要绕弯子。比如:
I am writing you to lodge a formal complaint about the racial discrimination
by Discover Financial Services that led to the sudden, unjustified closure
of my Discover credit card.
avatar
M*r
34
Here you go:
I am writing you to lodge a formal complaint about the racial discrimination
by Discover Financial Services that led to the sudden, unjustified closure
of my Discover credit card.
The closed Discover credit card was the first card that established my
credit history in 2002. Since then, I have never missed any payments, never
spent over my credit limit, and never used this card for illegitimate
purchases.
About a week ago, the company closed my account, without any warning and
notice in advance, and thereby greatly shortened the age of my oldest credit
account. I contacted Discover for several times to request an explanation,
but the company never gave me a straightforward response other than the
excuse that "we are no longer able to meet your servicing needs".
Based on my discussions with other cardholders and information learned from
the online community of Discover cardholders, I believe that this wave of
Discover’s closure of accounts was targeted at a large number of
cardholders with a particular racial and ethnic background (more
specifically, Chinese Americans) without a justified ground.
I respectfully urge the CFPB to investigate Discover’s possible racial
discrimination regarding the closure of its credit cards. As a consumer, I
believe it is CFPB’s responsibility to restrict unfair, deceptive, or
abusive acts or practices and to protect consumers from any kind of
discriminations by financial companies.
avatar
z*l
35
你写得太好了。
把你的当作样本之一,加到首贴。

discrimination
closure
never
credit
,
from

【在 M**r 的大作中提到】
: Here you go:
: I am writing you to lodge a formal complaint about the racial discrimination
: by Discover Financial Services that led to the sudden, unjustified closure
: of my Discover credit card.
: The closed Discover credit card was the first card that established my
: credit history in 2002. Since then, I have never missed any payments, never
: spent over my credit limit, and never used this card for illegitimate
: purchases.
: About a week ago, the company closed my account, without any warning and
: notice in advance, and thereby greatly shortened the age of my oldest credit

avatar
y*3
36
done!
avatar
n*l
37
revised a little and submitted
avatar
a*t
38
thanks
=========================
We're on it.
Thank you for submitting your complaint.
Your complaint number is: #14589983-5983895
Expect an email confirmation shortly.
You can check the status of your complaint at any time.
avatar
b*i
39
你们都是Chinese American了???
avatar
b*i
40
我建议可以改成residents with Chinese last names.

【在 b********i 的大作中提到】
: 你们都是Chinese American了???
avatar
m*s
41
Cardholders with Chinese names ?

【在 b********i 的大作中提到】
: 我建议可以改成residents with Chinese last names.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。