anshilbhansali
BAN USER// Example program
#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
struct timestamp{
string name;
float login_time;
float logout_time;
};
int main()
{
vector<timestamp> input;
timestamp t;
t.name = "A";
t.login_time = 1.2;
t.logout_time = 4.5;
input.push_back(t);
t.name = "B";
t.login_time = 3.1;
t.logout_time = 6.7;
input.push_back(t);
t.name = "C";
t.login_time = 8.9;
t.logout_time = 10.3;
input.push_back(t);
map<float, int> hmap;
for(int i=0;i<input.size();i++)
{
hmap[input[i].login_time]++;
hmap[input[i].logout_time]--;
}
int users = 0;
for(auto p : hmap)
{
users += p.second;
cout<<p.first<<", "<<users<<endl;
}
return 0;
}
RepJishaRuiz, Accountant at ASAPInfosystemsPvtLtd
I am a data -driven analytics manager with 3 years of experience identifying actionable profit-based marketing and product opportunities through ...
RepMorrisHelen, Speech writer at Micro Design
I am a speechwriter who works directly with senior executives or leaders to determine what points, themes, positions, or messages ...
Repjaramsmond, Passenger rate clerk at Sportswest
I am a Passenger Rate Clerk . Charter representative Provides fare information to passengers traveling on non scheduled or chartered motor ...
RepLoisHarvey, Apple Phone Number available 24/7 for our Customers at Absolute Softech Ltd
Working as a Content editor it's almost 10 years at Deco Refreshments, Inc. As a content editor is someone ...
RepAadhikLee, abc at 8x8
Expedite data entry efforts and bank reconciliation under the direct guidance of the senior accountant, ensuring clean, accurate financial records ...
Replarenccabral, Title searcher at Fisher Foods
In real estate business and law, a title search or property title search is the process of examining public records ...
RepZoeParker, Java Experienced at Abs india pvt. ltd.
I am Zoe , a Security Analyst with a record of success in completing financial market research and conducting earnings estimates ...
Replushililly, Area Sales Manager at ASAPInfosystemsPvtLtd
I am Graphic designer from Watertown. a professional within the graphic design and graphic arts industry assembles together images, typography ...
RepViennaJones, Reporter at Precious Moments
Experienced project manager and capable supervisor of a team of writers, reporters, illustrators, graphic artists, and other staff members. I ...
RepMiaDavis, abc at 8x8
I have excellent communication skills that allow me to effectively lead my team and convey my ideas to them so ...
RepEarlEvans, Android Engineer at ASAPInfosystemsPvtLtd
EarlEvans a Material dispatching working at Lazysize . It's been almost 5 years since I started working here . Online istikhara ...
RepAngieGibson, Jr. Software Engineer at Agilent Technologies
I am Angie , a Power Plant Operator with in-depth knowledge of all aspects of operation and maintenance and 3 years ...
RepJaninaGilden, Java Experienced at Boeing
I am Janina , a Registered Nurse with 3 years experience providing healthcare to a variety of patients in different institutions ...
RepYaniraBryant, Accountant at CGI-AMS
I am Yanira , a writer by fate. Went from writing for media outlets to exploring the world of content creation ...
RepDavlinaSmith, abc at ADP
I am a current residential landlord with 5 years’ experience looking to expand into commercial property management.Former florist by ...
RepKeciaFowler, Area Sales Manager at Auto NInja
My name is Kecia and I am a results-oriented Real Estate Appraiser Trainee with a strong determination to perform great ...
RepEddieCody, abc at A9
I am a creative freelance graphic designer with over 3 years of experience in developing engaging and innovative digital and ...
RepAileen Kate, HR Executive Trainee at Bankbazaar
Aileen , a game designer with 4+ years of experience in a creative yet deadline-driven environment. Eager to join The Rock ...
RepDarikaLee, Applications Developer at ADP
I am a knowledgeable and performance-driven Network Administrator with a comprehensive background in managing servers, maintaining software/hardware, performing backups ...
RepAnnetteOwens, Email Customer Service at Axiom Sources
Hi , I am Annette, a Data Processor with a comprehensive knowledge of data management and analysis. As I am a ...
Repmanduj972, Executive chef at Neptune, NJ 07753
Hello, I am Mandu and I completed all my study from Neptune. today I am working as an Executive Chef ...
RepBhrisBrown, Animator at Achieve Internet
I teach the art of cooking, including food preparation, various cuisines, and techniques of cooking. I work at colleges and ...
My solution recursively tries out all operators on the target number and each number in the array. The base case is when the target number equals the last number of the array.
- anshilbhansali February 27, 2017