Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
* Given an e-commerce system which enables its members to purchase video games from its website. Write a method in your prefered language that returns recommended list of video games to the user. Following is the signature of the method:


List<vidoegames> getVideoGamesRecommendations(User user);

Logic to find recommendations:

Each user has list of video games on their library, and each user also has list of friends (Users). Recommendations are all the video games, which are owned by the user’s immediate friends but not by the user.

1.Implement the given method efficiently and provide time complexity of your implementation, i.e Big O notation.

2.write Unit Test for the method.
Posted

That's nice - why don't you attempt to write some code, and post back here when you have specific issues/questions about it

<gjl don's black cap> WE DONT DO HOMEWORK </>
 
Share this answer
 
because i dont know to write so i am asking any body can help me
 
Share this answer
 
Yeah, way to go. You have the logic, and you're step behind from what you want to implement.

And no (a big no), we're not going to write anything for you. That's is something you need to do.
As I assume, this a homework; it won't entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".

You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code.

Thanks to Richard [^], please read the 6th point from this: A link to the Guidelines[^]

-KR
 
Share this answer
 
i know little bit programming not like this i know to write method if signature is not given i.e. when i have to write my own signature but i m confused with this signautre given here. List <getvideo>GamesRecommendations(User user); to use for method. i m not student electronics dont know much abt programming i m learning from internet by exploring things on programming and somebody gave me question to solve so i want answer if u can help i would be able to go in next round of interview. plz try to understand i m jobless n trying to get job in software development field. plz help////////
 
Share this answer
 
I think u guys dont know this question u r all fake programmer u call urself programmer u dont know anything to write on ur own just commenting on others code if somebody implemented just making guess on others code blindly when it work u think u r a hero. But u r not.
 
Share this answer
 
Comments
vini vasundharan 6-Oct-15 3:21am    
you seems to be so much irked..
XML
using System;
using System.Collections.Generic;
Public Class VGame
{
Static List<VidoeGames> getVideoGamesRecommendations(User user)
{

List<VideoGames> CarRace = new List<VideoGames>();
return CarRace;


}
Public static int Main()
{

List<videoGames> Car= new List<VideoGames>();
Car= getVideoGamesRecommendations();
retun 0;

}

is it right?????????

}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900