问题描述
请完成附加的编码挑战并通过电子邮件将邮政编码发送给我进行审核。
一旦我查看了您的代码,我们会通知您结果和进一步的过程。
编码挑战---
我们希望看到您的代码以及如何解决问题,并设计解决方案。请完成在您选择的langage下面练习并向我们发送代码,单元测试和测试数据的zip。
考虑以下信用卡欺诈检测算法:
信用卡交易由以下内容组成;
哈希信用卡号
时间戳 - 格式'year-month-dayThour:分钟:秒'
价格 - 格式'dollar.cents'
交易将以逗号形式收到分开的元素串,例如。 '10d7ce2f43e35fa57d1bbf8b1e2,2014-04-29T13:15:54,10.00'
如果是一张独特的哈希信用卡的价格总和,信用卡将被识别为欺诈卡对于给定的一天,数字超过了价格阈值T.
在类上写一个方法,当给出列表事务时,它可以是一个日期和价格阈值T,返回当天被识别为欺诈性的哈希信用卡号码列表。
我们希望看到能够证明您的代码有效的测试。
随意创建支持解决方案设计所需的任何其他课程。
什么我试过了:
我在这里没试过......
Please complete attached coding challenge and email the zip for code to me for review.
Once I have reviewed your code, we will let you know the results and further process.
Coding challenge---
We like to see your code and how you approach problems, and design solutions.Please complete below exercise in laungage of your choice and send us zip of the code, unit test, and test data.
Consider the following credit card fraud detection algorithm:
A credit card transaction is comprised of the following elements;
hashed credit card number
timestamp - of format 'year-month-dayThour:minute:second'
price - of format 'dollars.cents'
Transactions are to be received as a comma separated string of elements eg. '10d7ce2f43e35fa57d1bbf8b1e2, 2014-04-29T13:15:54, 10.00'
A credit card will be identified as fraudulent if the sum of prices for a unique hashed credit card number, for a given day, exceeds the price threshold T.
Write a method on a class, which, when given a list transactions, a date and a price threshold T, returns a list of hashed credit card numbers that have been identified as fraudulent for that day.
We expect to see tests that prove your code works.
Feel free to create any additional classes you need to support the design of your solution.
What I have tried:
I have had tried nothing in this...
推荐答案
我在这里没有尝试过......
I have had tried nothing in this...
你应该尝试不同的方法。
写一个clas用来描述交易。所有交易都是这种类的实例。检查欺诈行为,看起来并不是一项非常困难的任务。
You should try a different approach then.
Write a class to describe the transaction. All the transactions would be instances of such a class. Checking for fraudulence, doesn't look a terribly difficult task.
完成附加编码挑战并通过电子邮件将zip代码发送给我进行审核。
一旦我查看了您的代码,我们会通知您结果和进一步处理。
complete attached coding challenge and email the zip for code to me for review.
Once I have reviewed your code, we will let you know the results and further process.
LOL ,从来没有这个。你应该用你的大脑来解决问题,而不是那么有创造力来完成别人的工作,而不是那么复杂。
我们不做你的HomeWork 。
HomeWork不会在乞求别人做你的工作时测试你的技能,它会让你思考并帮助你的老师检查你对你所学课程的理解。你应用它们时遇到的问题。
你的任何失败都会帮助你的老师发现你的弱点并设定补救措施。
你的任何失败都会帮助你了解什么有效,什么无效,被称为'试错'学习。
所以,试一试,重读课程并开始工作。如果您遇到特定问题,请展示您的代码并解释这个问题,我们可能会提供帮助。
LOL, Never got this one. Rather than being so inventive in getting work done by others, you should use your brain to solve the problem, it is not so complicated.
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
这篇关于请用java语言帮助我..提前谢谢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!