iMocha's C Programming test is the ideal pre-hire assessment for recruiters and hiring managers to assess candidates' C programming before the interview. The test is useful in hiring for job-roles, such as Senior Level C Programmer, Front End Development - C Programming, And Embedded C - Senior Developer. The C Coding skills test (high level) can reduce hiring cost by 40%.
C Programming is basically a general purpose programming language that supports structured programming. It is widely used for system and application software. The various C Programming elements and concepts, such as functions, loops, pointers, arrays should be used effectively by a programmer to solve real world problems.
The C Programming test is designed mainly to assess candidates' performance in coding evaluation, knowledge of various functions and related codes. In this test, the programmer has to write the code using C coding language. Using powerful reporting, a detailed analysis of test results facilitates better hiring decisions and predicts candidates'/employees' success.
The test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. Therefore, the emphasis is laid on evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.
The test may contain LogicBox (AI-based pseudo coding platform), Coding Simulators, etc.
You are given a set of N numbers. Write a program to find the sum of all the power sets of the given Set N.
Note
- The power set of a set X is defined as a set of all possible subsets of X.
- Set X consists of all the numbers from 1 to N.
Example
Given N=3, X={1,2,3}
P(X) = {{1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}}
Answer = (1)+(2)+(3)+(1+2)+(1+3)+(2+3)+(1+2+3) = 24.
Input Format
An integer N.
Output Format
The output format contains the sum of all elements of all subsets of number N.
Sample Input 3
Sample Output 24