yogeshsharma
BAN USER
Comments (2)
Reputation 40
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
2
of 2 vote
This problem mainly deals with the storage of fraud credit cards. System should return whether the credit card details provided are proper or fraud in optimum time.
So, efficient storing the list of fraud cards includes
a.) Use optimum space.
b.) Check if credit card is already present in list or not in minimal time
c.) Insert new list of credit cards to the existing storage
d.) Deleting existing card from storage if required
Once we get the information whether the credit card is fine or fraud, we can proceed further as per requirement.
To solve the storage problem in our system, we can use hash table . but in this case, we need to design a good hash function.
Alternatively, we can use trie as well to store the credit card info
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Open Chat in New Window
Open Chat in New Window
Example given in question is wrong. Please rectify that to avoid any confusion.
- yogeshsharma October 18, 20161+0==1
but -11 +1 +12 !=1