Premium Employer

Infosys

3.7
based on 36.6k Reviews
Filter interviews by

20+ Divami Design Labs Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations
Q1. Glowing Bulbs

There are an infinite number of electric bulbs. Each bulb is assigned a unique integer starting from 1. There are ‘N’ switches also and each switch is labeled by a unique prime number. If a switch ...read more

View 2 more answers
Q2. Flip Bits

You are given an array of integers ARR[] of size N consisting of zeros and ones. You have to select a subset and flip bits of that subset. You have to return the count of maximum one’s that you can obt...read more

View 2 more answers
Q3. Rotting Oranges

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • ...read more
  • View 2 more answers
    Q4. Reset Matrix

    You have given a 2-dimensional array ‘ARR’ with ‘N’ rows and ‘M’ columns in which each element contains only two values,i.e., 0 and 1. Your task is to convert the given matrix into the Good matrix i...read more

    View 3 more answers
    Discover Divami Design Labs interview dos and don'ts from real experiences
    Q5. Ways To Make Coin Change

    You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change fo...read more

    View 4 more answers
    Q6. Game In Space

    Ninja is in space with his super spaceship having unlimited fuel. Ninja initially has a health level ‘H’ and his spaceship has an armour ‘A’. He decides to play a game, where at any instant he can ...read more

    View 3 more answers
    Are these interview questions helpful?
    Q7. Prime time again

    You have been given two integers ‘DAY_HOURS’ and ‘PARTS’. Where ‘DAY_HOURS’ is the number of hours in a day and a day can be divided into ‘PARTS’ equal parts. Your task is to find total instance...read more

    View 3 more answers
    Q8. Distinct Strings With Odd and Even Swapping Allowed

    You are given an array of strings. Your task is to find the number of unique strings.

    A string is considered unique if it cannot be formed from any other strin...read more

    View 2 more answers
    Share interview questions and help millions of jobseekers 🌟
    Q9. Print Diagonal

    You are given a 2D matrix, your task is to return a 2D vector containing all elements of the matrix in a diagonal fashion.

    Example:

    Following will be the output of the above matrix:

    1 5 2 9 6 3 1...read more
    Add your answer
    Q10. MergeSort Linked List

    For a given Singly Linked List of integers, sort the list using the 'Merge Sort' algorithm.

    Input format :
    The first and the only line of input contains the elements of the linked list sepa...read more
    Add your answer
    Q11. Ninja Technique

    Ninja has its own technique of making a decision to do something or not. This technique is known as the ninja technique. In this technique, Ninja generates a random string containing only digits,...read more

    Add your answer
    Q12. Rat In A Maze

    You are given a starting position for a rat which is stuck in a maze at an initial point (0, 0) (the maze can be thought of as a 2-dimensional plane). The maze would be given in the form of a squar...read more

    Add your answer
    Q13. Shortest path in an unweighted graph

    The city of Ninjaland is analogous to the unweighted graph. The city has ‘N’ houses numbered from 1 to ‘N’ respectively and are connected by M bidirectional roads. If a road ...read more

    Add your answer
    Q14. M-Coloring Problem

    You are given an undirected graph in the form of an adjacency matrix along with an integer M. You need to tell if you can color the vertices of the graph using at most M colors such that no tw...read more

    View 2 more answers
    Q15. Palindrome Partitioning

    You are given a string 'S'. Your task is to partition 'S' such that every substring of the partition is a palindrome. You need to return all possible palindrome partitioning of 'S'.

    Note:...read more

    Add your answer
    Q16. Rearrange The Array

    You are given an array/list NUM of integers. You are supposed to rearrange the elements of NUM such that no two adjacent elements will be the same or find out if it not possible.

    For example:...read more
    Add your answer
    Q17. Project based questions

    he asked me to explain all of the projects i had mentioned in my resume with each and every details i mentioned in the description of the projects along with the technology used , he also...read more

    Add your answer

    Q18. Write a program to check if a number is a palindrome or not.

    Ans.

    Program to check if a number is a palindrome or not.

    • Convert the number to a string

    • Reverse the string

    • Compare the reversed string with the original string

    • If they are the same, the number is a palindrome

    Add your answer

    Q19. Find the sum of all the even numbers in an array

    Ans.

    Sum of even numbers in an array

    • Loop through the array and check if each element is even

    • If even, add it to a running sum

    • Return the sum

    Add your answer
    Q20. DBMS

    theory questions and SQL

    Add your answer

    Q21. What are NOSQL databases?

    Ans.

    NOSQL databases are non-relational databases that store and retrieve data in a flexible and scalable manner.

    • NOSQL stands for 'Not Only SQL'

    • They are designed to handle large volumes of unstructured or semi-structured data

    • They offer high scalability and availability

    • Examples include MongoDB, Cassandra, and Couchbase

    Add your answer

    Q22. What are ACID properties?

    Ans.

    ACID properties are a set of properties that ensure database transactions are processed reliably.

    • ACID stands for Atomicity, Consistency, Isolation, and Durability.

    • Atomicity ensures that a transaction is treated as a single, indivisible unit of work.

    • Consistency ensures that a transaction brings the database from one valid state to another.

    • Isolation ensures that concurrent transactions do not interfere with each other.

    • Durability ensures that once a transaction is committed, it ...read more

    Add your answer

    Q23. Thrashing in OS?

    Ans.

    Thrashing is a phenomenon in OS where excessive paging occurs, leading to a decrease in system performance.

    • Occurs when the system is overcommitted with too many processes or tasks

    • Causes excessive swapping of pages between RAM and disk

    • Can be resolved by adding more RAM or reducing the number of processes

    • Can be identified by monitoring page fault rates

    Add your answer
    Contribute & help others!
    Write a review
    Share interview
    Contribute salary
    Add office photos
    Interview Tips & Stories
    Ace your next interview with expert advice and inspiring stories
    Share an Interview
    Stay ahead in your career. Get AmbitionBox app
    qr-code
    Helping over 1 Crore job seekers every month in choosing their right fit company
    70 Lakh+

    Reviews

    5 Lakh+

    Interviews

    4 Crore+

    Salaries

    1 Cr+

    Users/Month

    Contribute to help millions
    Get AmbitionBox app

    Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

    Follow us
    • Youtube
    • Instagram
    • LinkedIn
    • Facebook
    • Twitter