kingpotter1990
BAN USERkeep an updated Adjacency list representation of how good are related. Each Good will have a list of goods that are purchased by the same customer, also keep a count of each good in the list, return the top 3. When a user buy one new product, increase the count of it in all his other goods, increase the count of all other goods for this good.
- kingpotter1990 September 17, 2014keep an updated Adjacency list representation of how good are related. Each Good will have a list of goods that are purchased by the same customer, also keep a count of each good in the list, return the top 3. When a user buy one new product, increase the count of it in all his other goods, increase the count of all other goods for this good.
- kingpotter1990 September 17, 2014no need to store all msg, just calculate average for each second and the number of counts for that second, store 600 of them. Way less memory
- kingpotter1990 September 17, 2014no need to store all msg, just calculate average for each second and the number of counts for that second, store 600 of them. Way less memory
- kingpotter1990 September 17, 2014what if the file contain billions of lines and each line is 100 characters? then the trie is as large as 256^100, larger than #of atoms in universe.
- kingpotter1990 September 07, 2014If using a hashtable for the whole file, it is gonna be larger than the whole file. So you can not use one hashtable for the whole file. bloom filter is desired. Then a second pass
- kingpotter1990 September 07, 2014just use vector<char>
- kingpotter1990 October 07, 2012product need to be initialized to 1
- kingpotter1990 October 07, 2012
Repewasam940, Backend Developer at Absolute Softech Ltd
I am a 29-year-old Investment Advisor from New York. I help people make the right investment decision. I met many ...
Repangelafiecke, Blockchain Developer at ASU
I am a Data processor at DGS VolMAX. I will also be a controller for the data I use for ...
RepMelissaJoy, Associate at Bocada
Hi, I am Melissa, a purchasing agent from Texas. Kind of a good Samaritan, terrible athlete, but extremely blessed in ...
Repdanielhlee542, Associate at ASAPInfosystemsPvtLtd
Hi i am an health information technician at Seamans Furniture.Expertise in medical assistance, staff development and training, and implementing ...
keep an updated Adjacency list representation of how good are related. Each Good will have a list of goods that are purchased by the same customer, also keep a count of each good in the list, return the top 3. When a user buy one new product, increase the count of it in all his other goods, increase the count of all other goods for this good.
- kingpotter1990 September 17, 2014