How the CodeVue assessment works
CodeVue sits inside a HireVue interview. After the Begin page you either pick a language from a list or are told which one to use; the employer decides. You then choose Practice or Start Challenge, so you can try things out before the real challenge.
HireVue offers more than 200 ready-made coding challenges in languages including Python, Java, Ruby, JavaScript, PHP, C++ and Perl, and employers can add their own. Submissions are checked for possible plagiarism.
CodeVue runs on a computer with OS X 10.12 or later, Windows 7, or Windows 10 and later. It is not supported on mobile devices.
How to approach a coding challenge
Use the same steps on every problem:
- Read the problem twice and restate it in one line: the input, the output and the rules.
- List edge cases before you code: empty input, one item, duplicates, negative numbers, very large values.
- Solve a small example by hand, then write the simplest code that works.
- Test it against your examples and fix it. Think about speed only if the inputs could be large.
- Keep the code readable, with clear names and short functions.
Worked example
Problem: given a sorted list of whole numbers, return the largest gap between neighbours. For 1, 4, 6, 13 the gaps are 3, 2 and 7, so the answer is 7.
Before coding, settle the edge case: a list with fewer than two numbers has no gaps, so check what the problem wants returned, say 0. Then loop once through the list, keeping the largest difference between each number and the one before it. One pass is enough because the list is sorted.
Tips for the real CodeVue assessment
- Use the Practice option first. It is offered after the Begin page.
- Sit it on a computer. CodeVue does not support phones or tablets.
- Note your due date. If the invitation has none, HireVue suggests finishing within 48 hours.
- Write your own code. HireVue checks submissions for possible plagiarism.
- If you want a retake, ask the employer. HireVue says the decision is theirs.
Practise CodeVue on CogniPrep
Our CodeVue gives you three JavaScript problems of rising difficulty. Run the tests as often as you like to see which pass; your best run counts. A stopwatch counts up, with no cut-off. Your score out of 100 is mostly tests passed, with smaller shares for fully solving each problem and for time. The real assessment uses your employer’s language and challenges.