Agree whole heartedly. I was asking this thinking of open(<file>,O_DIRECT|O_RDONLY); that bypasses buffer cache and read directly from the disk that atleast solves buffer cache i guess. The disk cache is another thing…
How does checksumming help if the data is in cache and waiting to be written ? For ex: I have 1MB of data, i write it but it stays in buffer cache after written and when you do checksum you are computing the checksum on…
Can someone give similar hackerrank/job challenge + resume links for other orgs ?
I'm using HP ZBook 15 G2 Mobile Workstations with ubuntu 14 LTS since last 3 months. The only thing i miss is SSD that i didn't choose in my customization. Has 16GB RAM, i7 . I switch between Win 8.1 and linux…
>>>I won't go into the details that led up to this event<<<< Fix the problem and then go ahead and do whatever you want. Atleast you would be helping one other person. One you have crossed the line, there are no…
If you move what while (topK--) into the map loop , it becomes an online code for topK whereas what you wrote is an offline . If you want offline then pushing it into a priority_queue and then popping it out would be…
string s,f; map<string,int> M; set<pair<int,string> > S; while(cin >> s) { M[s]++; int x=M[s]; if(x>1) S.erase(make_pair(x-1,s)); S.insert(make_pair(x,s)); } set<pair<int,string> >::reverse_iterator it=S.rbegin(); int…
Agree whole heartedly. I was asking this thinking of open(<file>,O_DIRECT|O_RDONLY); that bypasses buffer cache and read directly from the disk that atleast solves buffer cache i guess. The disk cache is another thing…
How does checksumming help if the data is in cache and waiting to be written ? For ex: I have 1MB of data, i write it but it stays in buffer cache after written and when you do checksum you are computing the checksum on…
Can someone give similar hackerrank/job challenge + resume links for other orgs ?
I'm using HP ZBook 15 G2 Mobile Workstations with ubuntu 14 LTS since last 3 months. The only thing i miss is SSD that i didn't choose in my customization. Has 16GB RAM, i7 . I switch between Win 8.1 and linux…
>>>I won't go into the details that led up to this event<<<< Fix the problem and then go ahead and do whatever you want. Atleast you would be helping one other person. One you have crossed the line, there are no…
If you move what while (topK--) into the map loop , it becomes an online code for topK whereas what you wrote is an offline . If you want offline then pushing it into a priority_queue and then popping it out would be…
string s,f; map<string,int> M; set<pair<int,string> > S; while(cin >> s) { M[s]++; int x=M[s]; if(x>1) S.erase(make_pair(x-1,s)); S.insert(make_pair(x,s)); } set<pair<int,string> >::reverse_iterator it=S.rbegin(); int…