IXR Labs Coding Questions with Solutions

IXR Labs Coding Questions with Solutions 2023

In this page, you will find out IXR Coding Questions and Answers asked in Online Assessments and Technical Interviews involved in the Hiring Process of the Company.

Go through this page to get more details like Job Profile, Job Location, CTC Offered, Steps involved in the recruitment process, etc of the company.

ixr labs coding questions

About IXR Labs

IXR is a company established in 2018 in Netherlands that comprises skilled software developers and hardware experts with a retail background. They possess a thorough comprehension of contemporary business procedures, in-store and back-office operations, as well as techniques for maximizing and enhancing productivity. The retail sector, ranging from small fuel stations to large grocery chains, has a significant demand for IXR equipment. Nevertheless, their primary objective is to save time for their clients and offer a seamless shopping experience, eliminating the need to wait in long checkout queues.

About IXR Labs Recruitment Process

The IXR Labs Recruitment Process consists of the following steps :
  1. Online  Assessment [ MCQ + Coding ]
  2. Technical Interview
  3. HR Discussion

We have mentioned further details of the IXR Labs Recruitment Process in the following Tabular Form

IXR LabsRelated Information
Position :Junior Unity Developer
Course :
  • B.Tech – CSE, IT , MCA , BCA
  • Eligible Batch – 2023
Eligibility Criteria / Academic Qualification Required :
  • No minimum criteria
  • No Current Backlogs.
CTC  :
  • 5 LPA
Selection Process :
  1. Online Assessment (MCQ + Coding)
  2. Technical Interview
  3. HR Discussion
Joining Location :

Jaipur

IXR Labs Job Description

Junior Unity Developer

  • Implement apps functionality as per communicated design
  • Translate design specification into functional apps
  • Communicate with other team members to establish effective pipeline and integrate media assets
  • Design, build, and maintain efficient, reusable, and reliable code
  • Ensure the best possible performance, quality, and responsiveness of applications
  • Help maintain code quality, organization, and automatization
  • Adept with a complete MVC approach towards building code
  • Prime Course Trailer

    Related Banners

    Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

    IXR Coding Questions and Answers

    Question 1 : Number with 2

    Problem Statement  :

    Suppose you are in a number system, where if the number doesn’t contain 2 in the unit digit then the number is not valid. So the first number of the number system is 2, the second number is 12, and the third is 22.
    for a given integer n, you have to print the nth element of the number system.

    Input Format:
    First line, containing n denoting the number of test cases.
    then n number of lines for the query.

    Output Format:
    Print the consecutive number in the number system for each query.

    Sample Input:
    3

    Sample Output:
    22

    Explanation:
    1st number will be 2 , 2nd number will be 12 and third number will be 32

    Question 2 : Set Bit

    Problem Statement  :

    You are given an integer, N. You have to turn it into the binary representation of it, and find out how many set bits are there in the binary representation.

    Input Format:
    The first line contains the integer.

    Output Format:
    One line containing an integer denoting the number of setbits.

    Constraints:
    1<=N<=10^9

    Sample Input:
    8
    Output:
    1

    Output Description:
    8 in binary is 1000.

    Question 3

    Fountains are installed at every position along a one-dimensional garden of length n. Array locations[] represents the coverage limit of these fountains. The ith fountain (where 1sisn) has a coverage limit of locations[i] that can range from the position max((i – locations[i]), 1) to min((i + locations[i]), n ). In other words, the h fountains do not reach outside the boundaries of the garden. In the beginning,all the fountains are switched off. Determine the minimum number of fountains that need to be activated to cover the n length garden by water.

    Example

    • n = 3
    • locations[] = {0, 2, 13, then
      • For position 1: locations[1] = 0, max((1 – 0),
        • 1) to mini (1+0), 3) gives range = 1 to 1
      • For position 2: locations[2] = 2, max((2-2),
        • 1) to min( (2+2), 3) gives range = 1 to 3
      • For position 3: locations[3] = 1, max( (3-1),
        • 1) to min( (3+1), 3) gives range = 2 to 3

    For the entire length of this garden to be covered, only the fountain at position 2 needs to be activated.

    Function Description

    Complete the function fountainActivation in the editor below.

    fountainActivation has the following Parameter:

    • int locations[n]: the fountain locations

    Returns

    • int: the minimum number of fountains that must be activated

    Constraints

    • 1<_n<_ 10^5
    •  O<_locations[i] <_ mini (n,100) (where 1 <_1<_10^5)

    ► Input Format For Custom Testing

    Sample Case 0

    Sample Input For Custom Testing

    • 3 ->locations[] size n = 3
    • 1 ->locations[] [1, 1, 1
    • 1 ->Sample Output

    Sample Output

    • 1

    Explanation

    Here, locations = {1, 1, 13

    • For position 1: locations[1] = 1, maxi (1 -1), 1) to min((1+1), 3) gives range = 1 to 2
    • For position 2: locations[2] = 1, max( (2 -1), 1) to min( (2+1), 3) gives range = 1 to 3
    • For position 3: locations[3] = 1, max((3 -1), 1) to min((3+1), 3) gyes range = 2 to 3

    If the 2nd fountain is active, the range from position 7 to 3 will be covered. The total number of fountains needed is 1.

    Question 4

    Karan got bored, so he invented a game to be played on paper. He writes n integers a1, a2, …, an. Each of those integers can be either 0 or 1. He’s allowed to do exactly one move: he chooses two indices i and j (1 ≤ i ≤ j ≤ n) and flips all values ak for which their positions are in range [i, j] (that is i ≤ k ≤ j). Flip the value of x means to apply operation x = 1 – x.
    The goal of the game is that after exactly one move to obtain the maximum number of ones. Write a program to solve the little game of Iahub.

    Input

    • The first line of the input contains an integer n (1 ≤ n ≤ 100). In the second line of the input there are n integers: a1, a2, …, an. It is guaranteed that each of those n values is either 0 or 1.

    Output

    • Print an integer — the maximal number of 1s that can be obtained after exactly one move.

    Examples

    • Input
      5
      1 0 0 1 0
    • Output
      4
    • Input
      4
      1 0 0 1
    • Output
      4

    Note

    1. In the first case, flip the segment from 2 to 5 (i = 2, j = 5). That flip changes the sequence, it becomes: [1 1 1 0 1]. So, it contains four ones. There is no way to make the whole sequence equal to [1 1 1 1 1].
    2. In the second case, flipping only the second and the third element (i = 2, j = 3) will turn all numbers into 1.

    Question 5

    Problem Statement : You just received another bill which you cannot pay because you lack the money.

    Unfortunately, this is not the first time to happen, and now you decide to investigate the cause of your constant monetary shortness. The reason is quite obvious: the lion’s share of your money routinely disappears at the entrance of party localities.

    You make up your mind to solve the problem where it arises, namely at the parties themselves. You introduce a limit for your party budget and try to have the most possible fun with regard to this limit.

    You inquire beforehand about the entrance fee to each party and estimate how much fun you might have there. The list is readily compiled, but how do you actually pick the parties that give you the most fun and do not exceed your budget?

    Write a program which finds this optimal set of parties that offer the most fun. Keep in mind that your budget need not necessarily be reached exactly. Achieve the highest possible fun level, and do not spend more money than is absolutely necessary.

    Input

    • The first line of the input specifies your party budget and the number n of parties.
    • The following n lines contain two numbers each. The first number indicates the entrance fee of each party. Parties cost between 5 and 25 francs. The second number indicates the amount of fun of each party, given as an integer number ranging from 0 to 10.
    • The budget will not exceed 500 and there will be at most 100 parties. All numbers are separated by a single space.
    • There are many test cases. Input ends with 0 0.

    Output

    • For each test case your program must output the sum of the entrance fees and the sum of all fun values of an optimal solution. Both numbers must be separated by a single space.

    Example

    • Sample input:
      50 10
      12 3
      5 8
      16 9
      16 6
      10 2
      21 9
      18 4
      12 4
      17 8
      18 9
      50 10
      13 8
      19 10
      16 8
      12 9
      10 2
      12 8
      13 5
      15 5
      11 7
      16 2
      0 0
    • Sample output:
      50 29
      48 32

    FAQs related to IXR Labs Coding Questions

    Question 1: How many rounds are there in IXR Labs Hiring Process?

    There are in total three rounds in the IXR Labs Hiring Process which includes:-

    1. Online Assessments (MCQ + Coding)
    2. Technical Interview
    3. HR Discussion
    Question 2: Is Coding questions asked in IXR Labs Recruitment Process?

    Yes, Coding Questions are included in Online Assessment and Technical Interview of IXR Labs.

    Get over 200+ course One Subscription

    Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

    Checkout list of all the video courses in PrepInsta Prime Subscription

    Checkout list of all the video courses in PrepInsta Prime Subscription