I was solving a Leetcode problem which required me to save std::pair objects into a Hash Set. However the std::unordered_set in C++ does not allow you to store pairs as they are not hashable by default. Hence, I decided to try and use Boost’s Hash function library as a custom hash function. Leetcode editor was unable to find the Boost library files, but how would this go down in an interview if I did something like this? Would an interviewer care?
And yes, in such an interview I would most likely just use Python and make my life 10x easier. But im just curious to know how this would play out if I did elect to use C++.
Want to see the real deal?
More inside scoop? View in App
More inside scoop? View in App
blind
SUPPORT
FOLLOW US
DOWNLOAD THE APP:
FOLLOWING
Industries
Job Groups
- Software Engineering
- Product Management
- Information Technology
- Data Science & Analytics
- Management Consulting
- Hardware Engineering
- Design
- Sales
- Security
- Investment Banking & Sell Side
- Marketing
- Private Equity & Buy Side
- Corporate Finance
- Supply Chain
- Business Development
- Human Resources
- Operations
- Legal
- Admin
- Customer Service
- Communications
Return to Office
Work From Home
COVID-19
Layoffs
Investments & Money
Work Visa
Housing
Referrals
Job Openings
Startups
Office Life
Mental Health
HR Issues
Blockchain & Crypto
Fitness & Nutrition
Travel
Health Care & Insurance
Tax
Hobbies & Entertainment
Working Parents
Food & Dining
IPO
Side Jobs
Show more
SUPPORT
FOLLOW US
DOWNLOAD THE APP:
comments