You own a recruiting agency and you are trying to analyze data from the recruiting process.
After doing a data pull, you have a database containing 2 tables - interviews and positions.
The interviews table contains the following columns:
- id: a unique ID for each interview session
- position_id: ID for the position that the interview was for
- candidate_id: ID for the candidate that was
Asked in: INFOTECH
You are helping your professor at the university to generate a report containing three columns: name, grade, and mark. You are given a table of grades and students. Your professor has instructed you to create the report according to the following specifications:
- He doesn't want the names of those students who received a grade lower than 'C'.
- Higher grades in the report should be entered fi
Asked in: INFOTECH
Question: The kingdom has been given terrible news: the King has passed away. While the nation is mourning, the noblemen need to decide who will take the throne next.
The late King had many children, and now it is necessary to determine their order of succession according to their seniority.
The list of the King's children is represented as a table "Successors" with the following attributes:
Asked in: INFOTECH
Your boss wants to identify the successful projects running in your company, so he asked you to prepare a list of all the currently active projects and their average monthly income.
You have stored the information about these projects in a simple database with a single Projects table that has five columns:
- internal_id: the company's internal identifier for the project
- project_name: the
Asked in: INFOTECH
The longest diagonals of a square matrix are defined as follows:
- The first longest diagonal goes from the top-left corner to the bottom-right corner.
- The second longest diagonal goes from the top-right corner to the bottom-left corner.
Given a square matrix, your task is to swap its longest diagonals by exchanging their elements at the corresponding positions.
Example:
matrix = [[1,
Asked in: INFOTECH
3. Cluster Queries
In a Salesforce global infrastructure, there are customer support clusters numbered from 1 to clusters, distributed across multiple regions. These clusters are interconnected by n communication links, represented by the array connections, such that if two clusters are connected directly or indirectly, they belong to the same support network.
Each cluster has a case resolut
Asked in: SALESFORCE
2. Salesforce Latency Optimization
Given a Salesforce infrastructure with API nodes, cloud regions, and API edges (bidirectional API connections between them), the i-th connection links regions api_from[i] and api_to[i] with a latency of api_weight[i]. The max-latency of a region is the maximum latency of any API within that region.
Split this infrastructure into at most k independent region
Asked in: SALESFORCE
1. Salesforce Cloud server requests
In a Salesforce multi-cloud architecture, there is a circular network of m cloud servers, numbered from 1 to m, where servers 1 and m are adjacent. These servers handle various customer requests, and the latency between switching from one server to the next or the previous is given by an array, transitionTime[i], representing the time required to transition f
Asked in: SALESFORCE
Directory Structure (SDE Question) - Part A
You are given a directory structure represented as a tree, where each node represents a directory that can have any number of child directories.
- Each child directory will have a unique name.
- The second line of the input will contain the root name and its child directories.
Based on the given input, you have to construct the directory struct
Asked in: NAMMA_YATRI
Problem Statement
You are given an array arr of positive integers of size n. Each value in the array represents the number of toffees in a packet. Each packet can have any number of toffees. For example, if arr = [2, 3], this means that the first packet has 2 toffees and the second has 3 toffees. There are x students. The task is to distribute toffee packets among x students such that:
- Eac
Asked in: DataTroops