Urban Company
20+ Shakti Cords Interview Questions and Answers
You are given a non-decreasing array and an integer K. You need to remove exactly K integers from the given array such that the maximum diff...read more
Stark Industry is planning to organize Stark Expo, for which various departments have to organize meetings to check their preparations. Since Stark Tower has limited rooms available for the meeting, ...read more
You are given an integer 'X' and your task is to find an integer 'Y' such that the bitwise XOR of the integers 'X' and 'Y' give the maximum possible value. T...read more
You are given two strings A and B. Find the index of the first occurrence of A in B. If A is not present in B, then return -1.
For Example:
A = “bc”, B = “abcddbc”. String “A” is present at i...read more
You are given a sorted array 'ARR' and a number 'X'. Your task is to count the number of occurrences of 'X' in 'ARR'.
Note :
1. If 'X' is not found in the array, return 0. 2. The give...read more
You are given an array ‘arr’ of ‘N’ distinct integers. Your task is to print all the non-empty subsets of the array.
Note: elements inside each subset should be sorted in increasing order. But ...read more
You have been given string 'S' of length 'N' that may contain duplicate alphabets. Your task is to return the count of distinct subsequences of it.
For example:
For the given string “deed” ...read more
Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of th...read more
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
You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
You are given a connected undirected unweighted graph of ‘N’ nodes and ‘M’ edges, such that there is only one undirected edge between any two nodes and no self-loop. Your task is to find ...read more
You have an e-commerce website. You have to find the closest warehouse to the customer's address. How would you index your database based on latitude and longitude to find the closest warehouse?
You are given a 2D matrix (containing either ‘0’ or ‘1’) of size N x M, where each row is in sorted order. Find the 0-based index of the first row that has the maximum number of...read more
100 people are standing in a row numbered from 1 - 100. First-person is given a gun. First-person shoots the second person and passes the gun to the third person. The cycle continues and 99th p...read more
The person who survives is the one standing at position 73.
The pattern of shooting and passing the gun creates a cycle of skipping one person each time.
The cycle continues until there is only one person left.
To find the survivor, we need to determine the position that remains after each cycle.
The position that remains after the first cycle is 2.
The position that remains after the second cycle is 4.
The position that remains after the third cycle is 8.
The pattern of positions r...read more
Given 3 Strings, check whether the 3rd string contains all the characters of string 1 and 2 in any order. If all the characters are present, print "YES" otherwise print "NO".
There should not be ...read more
Two Questions: -
1. How would you optimize a database?
2. Difference between Relational vs NoSQL.
You have a large database(100s of TB).Now you have to apply some formatting to it and copy it to another database.
How would you do it?
Design a card game. OOD was required in this question.
Few questions on OOPs mainly focussing on private inheritance, destructors, virtual functions, and dynamic polymorphism
Create a system for the management of parking. Vehicle type includes Bus, Car, Bikes and Cycles.
Top HR Questions asked in Shakti Cords
Interview Process at Shakti Cords
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month