Redian新闻
>
商家可以更改order total吗?比如coupons violate their policy?
avatar
商家可以更改order total吗?比如coupons violate their policy?# Money - 海外理财
D*0
1
Write a function that takes two parameters: (1) a String representing a text
document and (2) an integer providing the number of items to return.
Implement the function such that it returns a list of Strings ordered by
word frequency, the most frequently occurring word first.Your solution
should run in O(n) time where n is the number of characters in the document.
这个是不是就是设置个大小为k的min-heap,先扫一遍统计每个word的frequency,放到
hashmap中,然后在扫一遍hashmap,然后放到min-heap中。那这种做法的复杂度是O(n
+ mlogk + klogk)是吧,也就是要求的O(n),因为k是输入的,m是word的个数。谢谢。
avatar
J*o
2
刚在个小网站下了个单,不太放心,请教大牛们个技术问题:
1. 线上order confirm了,用了coupon code,但是如果事后商家说code有问题,他
们可以修改order total,多charge,或者再次charge你的信用卡吗?
2. 如果是实体店呢,可以说coupons violate their policy,事后加钱吗?
谢谢大家!
avatar
l*y
3
一般是cancel
avatar
L*i
4
实体店怎么事后加钱?
网店也不会,偶只碰到过apply coupon后charge的是原价,联系了就把差价退给偶了
如果coupon void policy,如楼上所说,多是把你单给咔嚓了
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。