Add office photos
Employer?
Claim Account for FREE

Adobe

4.0
based on 1k Reviews
Filter interviews by

60+ Walker Digital Table Systems Interview Questions and Answers

Updated 10 Sep 2024
Popular Designations
Q1. Morty and his array

Rick gave Morty an array 'Arr' of length ‘N’ and an integer ‘K’ and asked him to find the minimum possible cost to split the array into non-empty sub-arrays such that the following conditions...read more

View 3 more answers
Q2. Delete middle node

You have been given a singly Linked List of integers. Your task is to delete the middle node of this List.

Note:

1. If there is no middle node in the list to delete, return an empty list (i.e....read more
Ans.

The task is to delete the middle node of a singly linked list of integers.

  • If the linked list is empty or has only one node, there is no middle node to delete.

  • To delete the middle node, we need to find the middle node and update the pointers of the previous and next nodes.

  • To find the middle node in one traversal, we can use two pointers - a slow pointer and a fast pointer.

  • The slow pointer moves one node at a time, while the fast pointer moves two nodes at a time.

  • When the fast ...read more

View 3 more answers
Q3. Sub Sort

You are given an integer array ‘ARR’. You have to find the length of the shortest contiguous subarray such that, if you sort this subarray in ascending order, then the whole array will be sorted in asce...read more

Ans.

The task is to find the length of the shortest contiguous subarray that needs to be sorted in order to sort the entire array.

  • Iterate through the array from left to right and find the first element that is out of order.

  • Iterate through the array from right to left and find the first element that is out of order.

  • Find the minimum and maximum elements within the subarray defined by the above two elements.

  • Expand the subarray to include any additional elements that are out of order ...read more

View 5 more answers
Q4. Search In Rotated Sorted Array

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4,...read more

Ans.

This is a problem where a sorted array is rotated and we need to search for given numbers in the array.

  • The array is rotated clockwise by an unknown amount.

  • We need to perform binary search to find the index of the given numbers.

  • If the number is found, return its index. Otherwise, return -1.

  • The time complexity of the solution should be O(logN).

View 3 more answers
Discover Walker Digital Table Systems interview dos and don'ts from real experiences
Q5. Quick Sort

You are given an array of integers. You need to sort the array in ascending order using quick sort.

Quick sort is a divide and conquer algorithm in which we choose a pivot point and partition the arra...read more

Ans.

The question asks to implement quick sort algorithm to sort an array of integers in ascending order.

  • Quick sort is a divide and conquer algorithm

  • Choose a pivot point and partition the array into two parts

  • Recursively sort the left and right parts of the array

  • Implement the quick sort algorithm to sort the given array

View 4 more answers
Q6. Swap Adjacent Bit Pairs

You are given an integer 'N'. Your task is to find the number formed after swapping each even bit of 'N' in its binary representation with its adjacent bit on the right, assuming that the...read more

Ans.

The task is to swap each even bit of an integer with its adjacent bit on the right in its binary representation.

  • Convert the given integer to its binary representation

  • Iterate through the binary representation and swap each even bit with its adjacent bit on the right

  • Convert the modified binary representation back to an integer

  • Print the resulting integer

View 2 more answers
Are these interview questions helpful?
Q7. LCA In A BST

You are given a binary search tree of integers with N nodes. You are also given references to two nodes P and Q from this BST.

Your task is to find the lowest common ancestor(LCA) of these two given...read more

Ans.

The task is to find the lowest common ancestor (LCA) of two given nodes in a binary search tree (BST).

  • The LCA is the lowest node that has both given nodes as descendants.

  • In a BST, the left subtree of a node contains only nodes with data less than the node's data, and the right subtree contains only nodes with data greater than the node's data.

  • Start from the root node and compare it with the given nodes. If both nodes are smaller than the current node, move to the left subtree...read more

View 4 more answers
Q8. Merge Two Sorted Linked Lists

You are given two sorted linked lists. You have to merge them to produce a combined sorted linked list. You need to return the head of the final linked list.

Note:

The given linked ...read more
Ans.

The task is to merge two sorted linked lists into a single sorted linked list.

  • Create a new linked list to store the merged list

  • Compare the values of the nodes from both lists and add the smaller value to the new list

  • Move the pointer of the list with the smaller value to the next node

  • Repeat the comparison and addition until one of the lists is empty

  • Add the remaining nodes from the non-empty list to the new list

  • Return the head of the new list

View 3 more answers
Share interview questions and help millions of jobseekers 🌟
Q9. Spiral Matrix

You are given a N x M matrix of integers, return the spiral path of the matrix

Example Of Spiral Path

Spiral Path

Input Format:
The first line contains an integer 'T' which denotes the number of test cases or...read more
Ans.

The task is to return the spiral path of a given matrix.

  • Iterate through the matrix in a spiral pattern, starting from the outermost layer and moving towards the center.

  • Keep track of the current row, column, and the boundaries of the remaining unvisited matrix.

  • Print the elements in the spiral path as you traverse the matrix.

View 3 more answers
Q10. Design a stack that supports getMin() in O(1) time and O(1) extra space

Implement a SpecialStack Data Structure that supports getMin() in O(1) time and O(1) extra space along with push(), pop(), top(), isEmpty()...read more

View 4 more answers
Q11. Maximum Sum Path Of A Binary Tree

You are given a binary tree having 'N' nodes. Each node of the tree has an integer value. Your task is to find the maximum possible sum of a simple path between any two nodes (p...read more

View 2 more answers
Q12. Longest subset zero sum

Ninja loves playing with numbers. So his friend gives him an array on his birthday. The array consists of positive and negative integers. Now Ninja is interested in finding the length of ...read more

View 2 more answers
Q13. Equilibrium Index

You are given an array Arr consisting of N integers. You need to find the equilibrium index of the array.

An index is considered as an equilibrium index if the sum of elements of the array to t...read more

View 3 more answers
Q14. Minimum Fountains

There is a one-dimensional garden of length 'N'. On each of the positions from 0 to 'N', there is a fountain, and this fountain’s water can reach up to a certain range as explained further. In ...read more

View 2 more answers
Q15. Water

You are given an array 'ARR' of positive integers, each of which represents the number of liters of water in that particular bucket, we have to make the liters of water in every bucket equal.

We are allow...read more

Add your answer
Q16. 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
Q17. Minimize Cash Flow

You are given a list of ‘transactions’ between ‘n’ number of friends. who have to give each other money. The list consists of data of receiver, sender, and transaction.

Your task is to minimiz...read more

Add your answer
Q18. Maximum meetings

You are given the schedule of N meetings with their start time Start[i] and end time End[i]. But you have only 1 meeting room. So, you need to tell the meeting numbers you can organize in the gi...read more

Add your answer
Q19. Split Array in ‘K’ consecutive subarrays with a given condition.

You have given an integer array ‘arr’ size ‘N’. You have to split the array into ‘K’ consecutive non-overlapping subarrays of length ‘M’ such that...read more

Add your answer
Q20. Longest Common Prime Subsequence

Ninja got a very long summer vacation. Being very bored and tired about it, he indulges himself in solving some puzzles.

He encountered a problem in which he was given two arrays...read more

Add your answer
Q21. Intersection Of Two Arrays

You are given two arrays 'A' and 'B' of size 'N' and 'M' respectively. Both these arrays are sorted in non-decreasing order. You have to find the intersection of these two arrays.

Inte...read more

View 3 more answers
Q22. Next Greater Element

You have been given an array/list ‘ARR’ consisting of ‘N’ positive integers. Your task is to return the Next Greater Element(NGE) for every element.

The Next Greater Element for an element ‘...read more

View 3 more answers
Q23. Max Product Subset

You are given an array/list ‘arr’ of size ‘n’. Your task is to find the maximum product possible by taking any subset of the array/list ‘arr’.

Since the product can be large, return it modulo ...read more

View 2 more answers
Q24. Split Array Into Maximum Subarrays

You have given an integer array/list ‘arr’ of size ‘N’. You have to split the array into the maximum number of subarrays such that the first and last occurrence of every distin...read more

View 2 more answers

Q25. You have a lot of small integers in an array. You have to multiply all of them. You need not worry about overflow and range, you have enough support for that. What can you do to speed up the multiplication on y...

read more
Ans.

To speed up multiplication of small integers in an array, we can use bitwise operations and parallel processing.

  • Use bitwise operations like shifting and ANDing to perform multiplication faster.

  • Divide the array into smaller chunks and perform multiplication in parallel using multi-threading or SIMD instructions.

  • Use lookup tables for frequently used values to avoid repeated calculations.

  • Use compiler optimizations like loop unrolling and vectorization.

  • Consider using specialized ...read more

Add your answer
Q26. Split Array

You have given an integer array/list ‘arr’ of size ‘N’. You have to split the array into the maximum number of subarrays such that the first and last occurrence of every distinct element lies in a si...read more

Add your answer
Q27. Populating Next Right Pointers in Each Node

You have been given a complete binary tree of ‘N’ nodes. The nodes are numbered 1 to ‘N’.

You need to find the ‘next’ node that is immediately right in the level order...read more

View 3 more answers
Q28. Number In AP

You’re given three integers X, C, and Y, where X denotes the first term of an arithmetic sequence whose common difference is C. Your task is to determine whether Y belongs to this arithmetic sequenc...read more

View 2 more answers

Q29. Given a program: int i; int main() { int j; int *k = (int *) malloc (sizeof(int)); … } Where are each of these variables stored?

Ans.

i is stored in global data segment, j is stored in stack, k is stored in heap.

  • i is a global variable and is stored in the global data segment

  • j is a local variable and is stored in the stack

  • k is a pointer variable and is stored in the stack, while the memory it points to is allocated on the heap using malloc()

Add your answer
Q30. OOPS Question

What is Diamond Problem in C++ and how do we fix it?

Ans.

The Diamond Problem is a conflict that occurs when a class inherits from two classes that have a common base class.

  • The Diamond Problem arises in multiple inheritance.

  • It occurs when a class inherits from two classes that have a common base class.

  • This leads to ambiguity in accessing the common base class members.

  • To fix the Diamond Problem, virtual inheritance is used.

  • Virtual inheritance ensures that only one instance of the common base class is inherited.

View 1 answer
Q31. OOPS Question

What are Virtual Destructors in C++?

Ans.

Virtual destructors in C++ are used to ensure that the correct destructor is called when deleting an object through a pointer to its base class.

  • Virtual destructors are declared in the base class and are used when deleting an object through a pointer to the base class.

  • They allow proper destruction of derived class objects.

  • Without virtual destructors, only the base class destructor would be called, leading to memory leaks and undefined behavior.

  • Virtual destructors are necessary...read more

View 1 answer

Q32. Given a set of words one after another, give me a data structure so that you’ll know whether a word has appeared already or not

Ans.

Use a hash table to store the words and check for existence in constant time.

  • Create a hash table with the words as keys and a boolean value as the value.

  • For each new word, check if it exists in the hash table. If it does, it has appeared before. If not, add it to the hash table.

  • Alternatively, use a set data structure to store only the unique words and check for existence in the set.

Add your answer
Q33. OS Question

What are the different types of semaphores ?

Ans.

Semaphores are synchronization primitives used in operating systems to control access to shared resources.

  • Binary semaphore: Can take only two values, 0 and 1. Used for mutual exclusion.

  • Counting semaphore: Can take any non-negative integer value. Used for resource allocation.

  • Mutex semaphore: A binary semaphore used for mutual exclusion.

  • Named semaphore: A semaphore that can be accessed by multiple processes.

  • Unnamed semaphore: A semaphore that can only be accessed by threads wit...read more

View 1 answer

Q34. Given a polygon (could be regular, irregular, convex, concave), find out whether a particular point lies inside it or outside it

Ans.

To determine if a point is inside a polygon, use the ray casting algorithm.

  • Create a line from the point to a point outside the polygon

  • Count the number of times the line intersects with the polygon edges

  • If the count is odd, the point is inside the polygon; otherwise, it is outside

Add your answer

Q35. Given an expression, remove unnecessary parenthesis. For example if (((a + b)) * c) is given make it (a + b) * c, as it evaluates in the same way without those parenthesis also

Ans.

To remove unnecessary parenthesis from an expression, we need to apply a set of rules to identify and eliminate them.

  • Identify and remove parenthesis around single variables or constants

  • Identify and remove parenthesis around expressions with only one operator

  • Identify and remove parenthesis around expressions with operators of equal precedence

  • Identify and remove parenthesis around expressions with operators of different precedence

  • Apply the rules recursively until no more unnece...read more

Add your answer

Q36. Given an array of integers, find the maximum product which can be formed by three numbers

Ans.

Find the maximum product of three integers in an array.

  • Sort the array in descending order.

  • Check the product of the first three numbers and the product of the first and last two numbers.

  • Return the maximum of the two products.

Add your answer

Q37. Given an array of integers, find the length of the longest consecutive sub array which forms an AP

Ans.

Find length of longest consecutive sub array forming an AP from given array of integers.

  • Sort the array in ascending order

  • Iterate through the array and find the longest consecutive sub array forming an AP

  • Use a variable to keep track of the length of the current consecutive sub array forming an AP

  • Use another variable to keep track of the length of the longest consecutive sub array forming an AP seen so far

Add your answer

Q38. Which are the four storage classes in C

Ans.

The four storage classes in C are auto, register, static, and extern.

  • Auto: default storage class for all local variables

  • Register: used to define local variables that should be stored in a register instead of RAM

  • Static: used to define local variables that retain their value between function calls

  • Extern: used to declare a global variable that is defined in another file

View 1 answer

Q39. Memory allocation for static varibles(when,which segment etc)

Ans.

Static variables are allocated memory in the data segment of the program's memory space.

  • Static variables have a fixed memory location throughout the program's execution.

  • They are initialized to zero by default.

  • If initialized explicitly, they are stored in the data segment.

  • Static variables can be accessed by any function in the program.

Add your answer

Q40. Give an array of integers arr1, find a new array where array[i] = multiplication of all entries arr1 except arr1[i] without using division operator

Ans.

To find a new array where each element is the product of all elements in the original array except the element at that index without using division operator.

  • Iterate through the array and calculate the product of all elements to the left of the current index for each element.

  • Iterate through the array in reverse and calculate the product of all elements to the right of the current index for each element.

  • Multiply the results from the two steps above to get the final array.

Add your answer

Q41. Given a wholly sorted two dimensional array , find the index of given element or return -1 if not present

Ans.

Search for an element in a sorted 2D array and return its index if found

  • Start from the top right corner and compare the target element with the current element

  • If the target is smaller, move left; if larger, move down

  • Repeat until the element is found or all elements are checked

Add your answer

Q42. Given an integer(consider 4 bytes) find which byte is zero

Ans.

Given an integer, determine which byte is zero.

  • Convert the integer to a byte array using bitwise operations.

  • Iterate through the byte array and check for a zero value.

  • Return the index of the zero byte.

  • Consider endianness when converting to byte array.

Add your answer

Q43. Given an array, find the Next Greatest Element to the right for each element

Ans.

Find the Next Greatest Element to the right for each element in an array of strings.

  • Iterate through the array from right to left

  • Use a stack to keep track of elements

  • Pop elements from stack until a greater element is found

  • If no greater element is found, assign -1

  • Return the result array

Add your answer

Q44. Program to check whether your machine is little endian or big endian

Ans.

To check endianness, create a 4-byte integer with a known value and check the byte order.

  • Create a 4-byte integer with a known value

  • Check the value of the first byte to determine endianness

  • If the first byte is the least significant, the machine is little endian

  • If the first byte is the most significant, the machine is big endian

Add your answer

Q45. Find space and time complexity for a recursive function(he wrote it)

Ans.

Finding space and time complexity of a recursive function.

  • Space complexity is the amount of memory used by the function.

  • Time complexity is the amount of time taken by the function to execute.

  • Recursive functions have higher space complexity due to the call stack.

  • Time complexity can be calculated using Big O notation.

  • Examples of recursive functions include factorial and Fibonacci sequence.

Add your answer

Q46. Gievn a binary tree and return all root to leaf node pathss row,col and value

Ans.

Return all root to leaf node paths in a binary tree with row, col and value.

  • Traverse the binary tree recursively and keep track of the current path.

  • When a leaf node is reached, add the path to the result array.

  • Include row, col and value of each node in the path.

  • Use an array of strings to store the paths.

Add your answer
Q47. OS Question

Define Process and Threads in OS.

Add your answer

Q48. Print something before execution of main()(use static objects)

Ans.

Static objects can be used to print something before main() execution.

  • Static objects are initialized before main() execution

  • They can be used to print something before main()

  • Example: static int x = printf("Hello World!");

  • Output: Hello World! will be printed before main() execution

Add your answer

Q49. WHAT IS OOPS WHY OOPS WHY NOT OOPS

Ans.

OOPS stands for Object-Oriented Programming. It is a programming paradigm that uses objects and classes for code organization and reusability.

  • OOPS allows for better code organization and reusability through the use of classes and objects.

  • Encapsulation, inheritance, and polymorphism are key principles of OOPS.

  • Examples of OOPS languages include Java, C++, and Python.

Add your answer

Q50. WHAT IS DBMS WHY DBMS WHY NOT DBMS

Ans.

DBMS stands for Database Management System. It is used to manage and organize data efficiently. It provides data security, integrity, and easy access.

  • DBMS helps in organizing and managing data efficiently.

  • It ensures data security and integrity by providing access control and data encryption.

  • DBMS allows for easy retrieval and manipulation of data through query languages like SQL.

  • Examples of DBMS include MySQL, Oracle, and Microsoft SQL Server.

Add your answer

Q51. WHAT IS DSA WHAT IS WEB DEVELOPMENT

Ans.

DSA stands for Data Structures and Algorithms. Web development is the process of creating websites and web applications.

  • DSA involves organizing and storing data efficiently for quick access and manipulation

  • Web development includes front-end (client-side) and back-end (server-side) development

  • Examples of DSA include arrays, linked lists, and sorting algorithms

  • Examples of web development technologies include HTML, CSS, JavaScript, and frameworks like React and Node.js

Add your answer
Q52. OOP Question

Overload pre and post-increment operator

Add your answer

Q53. Design a data structure for excel spreadsheet?

Ans.

Design a data structure for excel spreadsheet

  • Use a 2D array to store cell values

  • Implement formulas using a stack

  • Include formatting options for cells

Add your answer

Q54. Merge two sorted linked lists using recursion

Ans.

Merge two sorted linked lists using recursion

  • Create a recursive function that compares the first nodes of both lists

  • Set the smaller node as the head of the merged list and call the function again with the next node of the smaller list

  • Base case: if one list is empty, return the other list

  • Return the merged list

Add your answer

Q55. getMax() function for a stack in O(1)

Ans.

To get max value from a stack in O(1), maintain a separate stack to keep track of maximum values.

  • Create a separate stack to keep track of maximum values

  • Push the maximum value onto the stack whenever a new maximum is encountered

  • Pop the maximum value stack whenever the top element of the main stack is popped

  • Return the top element of the maximum value stack to get the maximum value in O(1)

Add your answer

Q56. WHAT IS SIEVE OF ERATOSTHENESE

Ans.

Sieve of Eratosthenes is an algorithm for finding all prime numbers up to a given limit.

  • Algorithm eliminates multiples of each prime number starting from 2

  • Remaining numbers are prime

  • Example: Finding prime numbers up to 30 - 2, 3, 5, 7, 11, 13, 17, 19, 23, 29

Add your answer
Q57. Puzzle

Two wire burning puzzle.

Add your answer

Q58. getMax() function for a queue in O(1)

Ans.

To get max element from a queue in O(1) time complexity

  • Maintain a separate variable to keep track of the maximum element in the queue

  • Update the maximum element variable whenever a new element is added or removed from the queue

  • Return the maximum element variable when getMax() function is called

Add your answer

Q59. Explain insertion sort,quicksort

Ans.

Insertion sort and quicksort are sorting algorithms used to sort arrays of data.

  • Insertion sort: iterates through the array and inserts each element into its proper position.

  • Quicksort: selects a pivot element and partitions the array into two sub-arrays, one with elements less than the pivot and one with elements greater than the pivot.

  • Insertion sort is best for small arrays, while quicksort is best for large arrays.

  • Both algorithms have an average time complexity of O(n log n)...read more

Add your answer

Q60. Operating on images in parallel

Ans.

Operating on images in parallel involves dividing the image into smaller parts and processing them simultaneously.

  • Divide the image into smaller parts using techniques like tiling or splitting

  • Use parallel processing techniques like multi-threading or GPU acceleration

  • Combine the processed parts to form the final image

  • Examples: image segmentation, object detection, image enhancement

Add your answer

Q61. Hardware engines support for parallelism

Ans.

Hardware engines support parallelism through multiple cores and threads.

  • Hardware engines can have multiple cores and threads to execute tasks simultaneously.

  • Parallelism can improve performance and efficiency in hardware-based tasks.

  • Examples include GPUs, FPGAs, and ASICs that have parallel processing capabilities.

  • Hardware parallelism can also be achieved through distributed computing and clustering.

  • Programming languages and frameworks like OpenCL and CUDA can be used to lever...read more

Add your answer

Q62. Memory protection in OS?

Ans.

Memory protection is a feature of an operating system that prevents unauthorized access to memory locations.

  • Memory protection is achieved through the use of memory management units (MMUs) and virtual memory.

  • MMUs map virtual addresses to physical addresses and enforce access permissions.

  • Virtual memory allows the OS to allocate memory to processes in a way that isolates them from each other.

  • Examples of memory protection mechanisms include segmentation, paging, and access contro...read more

Add your answer

Q63. OS support for parallelism

Ans.

Modern OSes support parallelism through multi-core processors and threading.

  • Modern OSes like Windows, macOS, and Linux support parallelism through multi-core processors and threading.

  • Parallelism can be achieved through processes or threads.

  • Parallelism can improve performance and efficiency of software.

  • Examples of parallel programming frameworks include OpenMP and MPI.

Add your answer

Q64. Diamond heirarchy problem

Ans.

Diamond hierarchy problem is a problem in object-oriented programming where a class inherits from multiple classes in a diamond-shaped hierarchy.

  • Occurs when a class inherits from two classes that share a common base class

  • Can lead to ambiguity in method calls and data members

  • Solved using virtual inheritance or by using interfaces

Add your answer

Q65. Tower of hanoi?

Ans.

Tower of Hanoi is a mathematical puzzle that involves moving a stack of disks from one peg to another.

  • The puzzle consists of three pegs and a number of disks of different sizes.

  • The objective is to move the entire stack to another peg, obeying the following simple rules:

  • - Only one disk can be moved at a time.

  • - Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack or on an empty peg.

  • - No disk may be placed on top of a smaller ...read more

Add your answer

Q66. unique path in a grid

Ans.

Find the number of unique paths in a grid from top left to bottom right

  • Use dynamic programming to store the number of paths to each cell

  • At each cell, the number of paths is the sum of paths from the cell above and the cell to the left

  • Example: For a 3x3 grid, there are 6 unique paths

Add your answer

Q67. maximum product in subarrray

Ans.

Find the maximum product of a subarray within an array of strings.

  • Iterate through the array and keep track of the maximum product so far

  • Consider both positive and negative numbers in the subarray

  • Handle edge cases like all negative numbers or empty array

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Walker Digital Table Systems

based on 6 interviews in the last 1 year
1 Interview rounds
Coding Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.8
 • 110 Interview Questions
3.8
 • 46 Interview Questions
4.3
 • 15 Interview Questions
3.8
 • 14 Interview Questions
4.0
 • 14 Interview Questions
View all
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