Search Questions

Latest Questions | Page 12

#1

In order to ensure maximum security, the developers at Company employ multiple encryption methods to keep user data protected.
In one method, numbers are encrypted using a scheme called 'Pascal Triangle'. When an array of digits is fed to this system, it sums the adjacent digits. It then takes the rightmost digit (least significant digit) of each addition for the next step. Thus, the number of di

Asked in: Amazon


Buyer: 0
Code Size: 10
#2

In this problem, you are given an integer array, and you need to perform some operations on the array to make all the elements equal to 0. In one operation, you can select a prefix of the given array and increment or decrement all the elements of the prefix by 1.

You have an array, arr, consisting of n integers. Find the minimum number of operations required to convert every element of this arr

Asked in: Amazon


Buyer: 0
Code Size: 10
#3

Prime Jumps

There is a game that is played as follows:

There is a pawn located at cell 0, and its score is 0.
There is a row of n cells numbered from 0 to n-1 from left to right.
Each cell has a value, and the first cell always has a value of 0.
In a single move, the pawn can move either:
one cell to the right, or
some number p cells to the right where p is a prime number ending in 3, e

Asked in: Amazon


Buyer: 0
Code Size: 55
#4

2. SQL: Ecommerce Deal Report

An online shop needs a new deal history feature. Create a query that returns a list of the top three seller profiles with the highest total deals in June, 2022.

The result should have the following columns:
first_name / last_name | email | total.

total - the total amount of all deals for a specific profile
The result should be sorted in descending order by

Asked in: Amazon


Buyer: 0
Code Size: 12
#5

Delete Even

Given a linked list of integers, return a linked list containing only nodes having odd integers in their node->data field.

Example
n=3

listHead=1->4->7

The linked list containing only nodes having odd integers is 1 -> 7.

Function Description
Complete the function deleteEven in the editor below.

deleteEven has the following parameter(s):
list listHead: a reference t

Asked in: Amazon


Buyer: 0
Code Size: 87
#6

String Subarrays

Problem Statement
Aarav, an aspiring linguist and programming enthusiast, enjoys finding patterns in words and letters. One day, while reading about the importance of vowels in the English language, he stumbles upon an interesting problem that blends his love for both linguistics and coding.

He is given an array of size N, where each element is a single English alphabet. As

Asked in: Walmart


Buyer: 0
Code Size: 10
#7

Unique Encryptions in Nexus Prime

| Problem Statement
In the futuristic city of Nexus Prime, a tech organization stores large amounts of encrypted data files. Each file's content is scrambled using different arrangements of letters to create unique encryption patterns. Dr. Axiom, the lead engineer, needs to figure out how many different ways a file can be scrambled (encrypted). As the size of

Asked in: Walmart


Buyer: 0
Code Size: 23
#8

Counting Repeated Game Scores

During a school sports day event, students record their scores, However, some students accidentally recorded the same score multiple times. Your task is to help the event organizer identify all scores that are repeated and determine the indices where each duplicate occurs.

You are given an integer N, representing the number of students, followed by a list of the

Asked in: Walmart


Buyer: 2
Code Size: 20
#9

Ruest for Mystic Numbers

Problem Statement

the land of Numeria, the ancient sages have discovered a magical property in me numbers that they call "Mystic Numbers". These numbers hold special wers that can influence the harmony of the universe. You, as an apprentice to e sages, have been tasked with identifying these MysticNumbers.

The sages define a Mystic Number as follows:
1. It must b

Asked in: Walmart


Buyer: 2
Code Size: 18
#10

Will We Meet

In the bustling town of Skyline Street, Jatin and Mano, two childhood friends, often challenge each other to exciting games. One day, they came up with a unique adventure-"The Climb of Heights."

Skyline Street consists of N buildings, each with a unique height, forming a magnificent skyline. The friends decide to start from their respective buildings and see if they can meet on

Asked in: Walmart


Buyer: 1
Code Size: 26