We are hiring! 🚀 If you are in our hiring process or considering Harbiz a company in which you would like to work, solve the following challenges and let us know! 😎
This challenge consists on building a table that displays random users from randomuser.me api API.
Must Have:
- Search: Filter users based on name, gender and email.
- Sorting: sort ascending and descending according to the selected column
- Export: By selecting multiple rows, be able to export them as csv.
Bonus:
- Drag & Drop: Ability to sort the table by drag&drop the selected rows before exporting as a csv.
Refactor the Calendar class and make any changes you see that are usefull to fulfill these requirements:
- All the tests must pass.
- The code must fulfil OOP and SOLID principles.
- The code must be maintainable.
- The code must be extensible.
- You must apply defensive programming practices.
See the tests for more information.
Given an integer n, we want an array as an output like:
- Fist index: how many 1-bits are in its binary representation
- Subsequent indexes: respective positions of the one-indexed 1-bits in n's binary representation.
Example: Input = 39 which binary representation is 100111 should return this output [ 4, 0, 3, 4, 5 ]. 4: there are 4 positive bits 0, 3, 4 and 5: respective positions of the one-indexed 1-bits