Consider the efficiency of locating the kth element in a singly-linked list. How does that compare to locating the kth element in a doubly-linked list

Answers

Answer 1

Answer:

Finding kth element is more efficient in a doubly-linked list when compared to a singly-linked list

Explanation:

Assuming that  both lists have firs_t and last_ pointers.

For a singly-linked list ; when locating a kth element, you have iterate through a number of k-1 elements which means that locating an element will be done only in one ( 1 ) direction

For a Doubly-linked list : To locate the Kth element can be done from two ( directions ) i.e. if the Kth element can found either by traversing the number of elements before it or after it . This makes finding the Kth element faster because the shortest route can be taken.

Finding kth element is more efficient in a doubly-linked list when compared to a singly-linked list


Related Questions

hardware and costs of adding two levels of hardware RAID. Compare their features as well. Determine which current operating systems support which RAID levels. Create a chart that lists the features, costs, and operating systems supported.

Answers

Explanation:

1. Redundant batch of Inexpensive Drives (or Disks) (RAID) is a term for data storage schemes that divide and/or replicate data amid multiple hard drives.

2. RAID can be designed to provide increased data accuracy or increased Input/Output performance

Hardware RAID exists as a customized processing system, utilizing various controllers or RAID cards to control the RAID design independently from the OS. Software RAID utilizes the processing capacity of that computer's operating system in which the RAID disks exists installed.

What are the two types of RAID?

We have two kinds of RAID implementation through. Hardware and Software. Both these implementation contains its own benefits and drawbacks.

Software RAID does not count any cost for a RAID controller and exists fairly effortless to estimate the cost of as you exist only buying additional drives. All of our usual dedicated servers come with at least two drives, indicating there exists NO cost for software RAID 1, and stands positively suggested.  It exists positively suggested that drives in a RAID array be of the exact type and size. With RAID 0 or RAID 1, you'd require at least two drives, so you would require to buy one additional drive in most cases. With RAID 5 you'll require at least three drives, so two additional drives, and with RAID 6 or 10 you'd require at least four total drives. To earn additional implementation, redundancy, or disk space, you can count more disks to the collections as well.

To learn more about two types of RAID

https://brainly.com/question/19340038

#SPJ2

You designed a program to create a username using the first three letters from the first name and the first four letters of the last name. Usernames cannot have spaces. You are testing your program with a user whose name is Jo Wen. What step in the program plan do you need to revisit

Answers

Answer:

See Explanation

Explanation:

The question would be best answered if there are options to select from; since none is provided, I will provide a general explanation.

From the question, we understand that, you are to test for Jo Wen.

Testing your program with this name will crash the program, because Jo has 2 letters (3 letters are required), and Wen has 3 letters (4 letters are required)

So, the step that needs to be revisited is when the username is generated.

Since the person's name cannot be changed and such person will not be prevented from registering on the platform, you need to create a dynamic process that handles names whose lengths are not up to the required length.

help me guys plssssss​

Answers

Answer     The answer is

                                   

                           So hope this was helpful

Explanation:

Create a class called Circle, which has (i) an attribute radius, (ii) a method that returns the current radius of a circle object, (iii) a method that allows the user to reset the radius of a circle, (iv) a method that calculates the area of the circle, and (v) a constructor that takes a number as parameter input and assign the number as the initial value of radius.

Answers

Answer:

Explanation:

The following class is written in Java. I created the entire Circle class with each of the methods and constructor as requested. I also created a tester class to create a circle object and call some of the methods. The output can be seen in the attached picture below for the tester class.

class Circle {

   double radius;

   public Circle(double radius) {

       this.radius = radius;

   }

   public double getRadius() {

       return radius;

   }

   public void resetRadius() {

       radius = 0;

   }

   public double calculateArea() {

       double square = Math.pow((Math.PI * radius), 2);

       return square;

   }

}

1-How many moles of NazCOs are in 10.0 ml of a 2.0 M solution?​

Answers

Answer:

A solution is a mixture in which the particles are so small that the components are indistinguishable from each other. The amount of the solute and the solvent in a solution can be expressed in terms of different concentration expressions such as molarity, morality, etc.

Explanation:

To calculate the number of moles of sodium carbonate, the volume in liters will be multiplied by the molar concentration of the solution.

moles Na2CO3 = 2.0 M  x 0.0100 L = 0.020 moles Na2CO3

Hope it helps :)

Answer:

There are 20. mol of Na2CO3 in 10.0L of 2.0M solution.

Explanation:

Molarity is represented by this equation:

(look at attachment)

In our case, we already have the molarity and volume of solution, both of which have good units.

Let's rearrange the equation to solve for the number of moles. We can do this by multiplying by L solution on both sides of the equation. The L solution will cancel out on the right side, leaving the number of moles being equal to the molarity times volume:

Moles of solute

=Lsolution×Molarity

Now we just plug the known values in!

Moles of solute = (10.0 L) (2.0M) = 20. moles

b) Set of strings of 0s and 1s whose 5th symbol from left is 1.

Answers

Answer:

...?

Explanation:

8. (a) Write the following statements in ASCII
A = 4.5 x B
X = 75/Y

Answers

Answer:

Explanation:

A=4.5*B

65=4.5*66

65=297

1000001=11011001

10000011=110110011(after adding even parity bit)

X=75/Y

89=75/90

10011001=1001011/1011010

100110011=10010111/10110101(after adding even parity bit)

If the user enters any operator symbol other than , -, *, or /, then an UnknownOperatorException is thrown and the user is allowed to reenter that line of input. Define the class UnknownOperatorException as a subclass of the Exception class. Your program should also handle NumberFormatException if the user enters non-numeric data for the operand.

Answers

Answer:

Explanation:

The following code is written in Java. It creates the UnknownOperatorException class and catches it if the user enters something other than the valid operators. If so it continues asking the user for a new input. Once a valid operator is entered, it exits the function and prints the operator.

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       char symbol = askForOperand();

       System.out.println("Operand: " + symbol);

   }

   public static char askForOperand() {

       Scanner in = new Scanner(System.in);

       try {

           System.out.println("Enter operator symbol: ");

           char symbol = in.nextLine().charAt(0);

           if ((symbol != '-') && (symbol != '*') && (symbol != '/')) {

               System.out.println(symbol);

               throw new UnknownOperatorException();

           } else {

               return symbol;

           }

       } catch (NumberFormatException | UnknownOperatorException e) {

           System.out.println("Not a valid operand");

           char symbol = askForOperand();

           return symbol;

       }

   }

}

class UnknownOperatorException extends Exception {

   public UnknownOperatorException() {

       System.out.println("Unknown Operator");

   }

}

Which term refers to a cloud-native, streamlined technology for hosting cloud-based applications, where a server runs for short bursts only when needed by an application or service

Answers

Answer:

Serverless computing.

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

Cloud computing comprises of three (3) service models and these are;

1. Platform as a Service (PaaS).

2. Infrastructure as a Service (IaaS).

3. Software as a Service (SaaS).

The three (3) main characteristics of cloud computing are;

I. Measured service: it allows cloud service providers to monitor and measure the level of service used by various clients with respect to subscriptions.

II. Resource pooling: this allows cloud service providers to serve multiple customers or clients with services that are scalable and provisional.

III. Elasticity: this is the ability of the cloud computing service to be flexible and adaptive to the traffic or requests from the end users.

Serverless computing is a term which refers to a cloud-native and streamlined technology that is designed typically for hosting cloud-based applications, in which a server operates for short bursts only when needed by an application or service. Serverless computing is used for the allocation of machine resources on demand.

write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles.

Answers

Answer:

try this

Explanation:

km = float(input('Kilometers: '))

nm = (km * 5400) / 10000

print('%0.4f km = %0.4f Nautical Miles' %(km,nm))

An OpenCL Device is composed of: Group of answer choices Command Queues Platforms Processing Elements Compute Units

Answers

Answer:

Compute Units

Explanation:

A platform can be defined as a computing environment for building and executing sets of code in a software application or program such as an application programming interface (API).

The two parts of the platform used to run an application software are both hardware and software (operating system).

Machine and assembly are referred to as a low level programming language used in writing software programs or applications with respect to computer hardware and architecture. Machine language is generally written in 0s and 1s, and as such are cryptic in nature, making them unreadable by humans but understandable to computers.

OpenCl is an abbreviation for open computing language that runs on CUDA-powered graphics processing units (GPUs). An OpenCL Device is composed of compute units and an OpenCl compute unit typically comprises of processing elements.

what is internet? explain help pliz​

Answers

The Internet, sometimes called simply "the Net," is a worldwide system of computer networks -- a network of networks in which users at any one computer can, if they have permission, get information from any other computer (and sometimes talk directly to users at other computers).

Write a MY SQL query to display the name and hire date of all employees who were hired in 1992.

Answers

Answer:

Select * from Employees where LastName LIKE '%H%' or LastName LIKE '%A%' or   LastName LIKE '%Z%' order by Hiredate(or whatever you put for your year name) desc;

Explanation:

Select all phrases that describe a server-based network. centralized network security easy to expand log-ins controlled by central server unlimited number of users network resources stored on individual workstations

Answers

Answer:

Client Server Network ... is the central computer that enables authorized users to access networked resources ... computers in this type of network are connected to a central hub ... why might a business choose a server based network (3) ... 2) easier to expand ... external hardware connected to and controlled by a computer.

Explanation:

Answer

Explanation:

what the other person said

What is the default join type? inner self join left outer right outer

Answers

Answer: inner

Explanation: on edg

Answer:

inner

Explanation:

just did it on Edg

You wish to traverse a binary search tree in sorted order using pre order traversal. Arrange the following actions in the correct order to accomplish this. I Print the right subtree recursively II Print the root III Print the left subtree recursively

Answers

Answer:

II Print the root

III Print the left subtree recursively

I Print the right subtree recursively

Explanation:

The question illustrates binary search in data structure.

When preorder is applied to a binary search, the search starts by visiting the root node, then proceed to the visiting the left most nodes and finally, the left nodes will be visited.

Using the above illustration, the arrangement of the actions in ascending order is: II, III and I


Which statement describes Augmented Reality (AR) technology?

Answers

Answer:

Augmented Reality (AR) superimposes images and audio over the real world in real time. It does allow ambient light and does not require headsets all the time.

yan po ang szgot

wala po kasi pagpipilian

HOPE IT HELPS

pls follow ke

PLEASE HELP ASAP!!

This command allows you to duplicate text from one part of a document while keeping the original text.

Cut
Copy
Format
Paste

Answers

The answer to your question is= Copy

Answer: CTRL + C or copy and paste

Explanation: to copy and paste highlight text by dragging mouse or clicking on touchpad and holding over selected text, if not on a computer but on a touch screen device ( ex: Phone, iPad etc) hold down until it is blue use the tear drops from the top and bottom to highlight the text you need. Then hold down the blue area until options come up stop holding and select copy and then go to where you want to put the text and hold down again and select paste. If on computer drag cursor over text while holding down on left click or holding down on touchpad, it will highlight light blue then left click or click on the touchpad with both fingers and repeat the process of copying and pasting as said before.

Hope this helps! :)

Why do organizations need to tailor project management concepts, such as those found in the PMBOK® Guide, to create their own methodologies?

Answers

Explanation:

Although each project is different and unique, according to the Method Statement of PMBoK, customising is required. Not that every procedure, tool, methodology, input, or output listed in the PMBoK Guide is mandated for every project. Scope, timeline, cost, materials, quality, and danger should all be considered while tailoring.

An ISA specifies a word size of 8 bytes, byte addressability, and an address space of 256 K; it uses single-word instructions (i.e. each instruction is a single 8 byte word). What is the size of the MAR

Answers

Answer:

2 bytes

Explanation:

Size of the MAR ( memory address register )  = 18 bits = 2 bytes

Given that

address space = 256 K  = 2^8

number of address location= 2^8  * 2^10       ( where 1K = 2^10 )  

                                              = 2^18

Given the number of address location = 2^18 ;

Hence  18 bits are required to store the address of the instruction

Imagine running a 64-bit system on a 32-bit system, where we simulate a single 64- bit memory location (register) using two atomic 32-bit memory locations (registers). A write operation is implemented by simply writing the first 32-bits of the simulated 64-bit register in the first real register, then the second 32-bits in the second real register. A read, similarly, reads the first half from the first register, then the second half from the second register, and returns the concatenation. What is the strongest property that this 64-bit register satisfies: safe, regular, or atomic

Answers

Answer:

It's not possible to ensure memory access occurs indivisibly when it has to broken into multiple operations. Unfortunately, the fact that your application is running on a 64-bit kernel does not change the equation any - it is actually running in a compatibility layer and has none of the benefits of x64

Explanation:

A network consists of 75 workstations and three servers. The workstations are currently connected to the network with 100 Mbps switches, and the servers have 1000 Mbps connections. Describe two network problems that can be solved by replacing the workstations' 100 Mbps switches and NICs with 1000 Mbps switches and NICs. What potential problems can this upgrade cause

Answers

Answer:

A)  i) starvation  ii) flow control

B) Network congestion

Explanation:

A) Network problems that can be addressed / solved

By replacing the workstations 100 Mbps switches with 1000 Mbps switches the problem of

Starvation;  been faced by the servers due to the delay in sending data to be processed by the servers from the workstations will be resolved .

Flow control : The huge difference in the speeds of the workstations and servers causes a network buffer which leads to packet loss therefore when the workstations 100 Mbps switch is replaced with 1000 Mbps switch this network problem will be resolved

b) The potential problem that can be encountered is Network Congestion

George has a set of software programs installed on his computer to create a digital portfolio. He is not sure what each program does. Help George by matching the software to their purposes

Answers

Explanation:

I thinkcreating and edditing Images matchs to adobePhotoshop

Microsoft word is for adding and Creating text document

Creating andeditingpage layout -Adobe In Design

Desktop Publication-QuarkQuark Xpress

I hope thishelp and If wrong Inform me

Good luck

Answer:

This is the answer based off of the notes

Explanation:

You work for a large company that has over 1000 computers. Each of these computes uses a wireless mouse and keyboard. Therefore, your company goes through a lot of alkaline batteries. When these batteries can no longer power the intended device, you must decide what to do with them. Unless otherwise dictated by your local authorities, which of the following would be the EASIEST way to deal with these batteries?
They must be sent to hazardous waste collection

a. They can be recharged.
b. They must be stored onsite until they expire
c. They can be thrown in the trash.

Answers

The answer to this question is, "They can be thrown in the trash."

Explanation: This is because it specifies how to get rid of them UNLESS local authorities have told you otherwise.

Select the correct answer.
What should you keep in mind when picking a topic for a research paper?
ОА.
choosing a general topic
OB.
choosing a topic that is relatively new
O C.
choosing a specific topic rather than a broad one
OD. choosing a topic based on the most number of sources you can find
Reset
Next

Answers

Answer: The answer is C

Explanation: When it comes to research papers your topic shouldnt be too broad. Your topic should be broad enough you can find a good amount of information but not too focused that you can't find any information.

When adding several user accounts, you might want to use the newusers utility, which can process a text file full of entries to add user accounts. Use the man or info page to find out how to use this utility, and use it to add three users. When finished, view the /etc/passwd, /etc/shadow, and /etc/group files to verify that the users were added successfully.

Answers

Explanation:

Given - When adding several user accounts, you might want to use the new users utility, which can process a text file full of entries to add user accounts.

To find - Use the man or info page to find out how to use this utility, and use it to add three users.

Proof -

New Users Utility:

It is an utility which reads the file full of usernames and clear text passwords.

It then uses this information to update a group of the existing users to create new users.The format of the file consists of specified things like:

pw - passwd

pw - age

pw - gid

pw - dir

Use of the Utility:

The command is new users filename

The file should look like -

(Username : Password : UID : GID : User Information : Home Directory : Default Shell)

where ,

UID = User Identifier

GID = Group Identifier

Testing the Users:

Creating users from the file given above test User 1, directory Of File

Executing the create user new users directory Of File

Repeat this step to undergo all the users that are been noted down in the file to make them a user in the noted group policy.

Hence,

These are the steps of using the new Users utility.

Create a dynamic array of 100 integer values named myNums. Use a pointer variable (like ptr) which points to this array. Use this pointer variable to initialize the myNums array from 2 to 200 and then display the array elements. Delete the dynamic array myNums at the end. You just need to write part of the program.

Answers

Answer:

The required part of the program in C++ is as follows:

int *ptr;

int *myNums = new int(100);

srand (time(NULL));

for (int i = 0; i < 100; i++) {

 myNums[i] = rand() % 200 + 2; }

ptr = myNums;

cout << "Output: ";

for (int i = 0; i < 100; i++) {

 cout <<*(ptr + i) << " "; }

delete[] myNums;

Explanation:

This declares a pointer variable

int *ptr;

This declares the dynamic array myNums

int *myNums = new int(100);

This lets the program generate different random numbers

srand (time(NULL));

This iterates through the array

for (int i = 0; i < 100; i++) {

This generates an integer between 2 and 200 (inclusive) for each array element

 myNums[i] = rand() % 200 + 2; }

This stores the address of first myNums in the pointer

ptr = myNums;

This prints the header "Output"

cout << "Output: ";

This iterates through the pointer

for (int i = 0; i < 100; i++) {

Print each element of the array, followed by space

 cout <<*(ptr + i) << " "; }

This deletes the dynamic array

delete[] myNums;

2. What is software conflict?

Answers

Answer:

A problem that occurs when two programs cannot run in the same computer at the same time. It is generally due to a programming bug and typically manifests when two programs compete for the same resource (memory, peripheral device, register, etc.).

Hope it helps out!

Explanation:

A computer can manipulate symbols as if it understands the symbols and is reasoning with them, but in fact it is just following cut-and-paste rules without understanding why. This means that:

Answers

Answer:

The symbols may or may not have meaning, but the machine does not need to know how the symbols are interpreted in order to manipulate the symbols in the right way.

Explanation:

The computer can change the symbols in the case when the computer understand but in actual following the cut-paste rules without having any understanding this is because the symbols might be have meaning or not but if we talk about the machine so actually they dont know how the symbols are interpreted and how it can be used so that it can be change in the accurate way

Write a function called csv_sum that takes a filename and returns the sum of all of the numbers in the file. The numbers are in csv format. For instance, if the contents of the file are: 12,3,2 -5 10,20,-10,8.3 Then the function should return 40.3.

Answers

Answer:

Explanation:

def csv_sum(filename):

   total = 0

   try:

       f = open(filename)

       for line in f:

           words = line.strip().split(",")

           for word in words:

               total += float(word)

       f.close()

   except FileNotFoundError:

       pass

   return total

Other Questions
Use the combination formula to solve a problem when n = 6 and r = 4. A. 60 B. 45 C. 30 D. 15 Inherited diseases can __________, which will negatively affect physical fitness. 9. Cellular respiration occurs in what types of cells? ap human geography I NEED HELP PLEASEEEEE A middle school science teacher wants to conduct some experiments. There are 15 students in the class. The teacher selects the students randomly to work together in groups of five. a. In how many ways can the teacher combine five of the students for the first group if order is not important? (3 points) b. After the first group of five is selected, in how many ways can the teacher combine five of the remaining students if order is not important? (3 points) Read the paragraph.Tanya sat in the back of the canoe, guiding it along the shore. She and Hwen had been paddling all day, but they still couldnt see a clearing where they might camp. Every time Tanya dipped her paddle in the water and pulled, her shoulders and arms strained with fatigue. Tanya could tell from the slump of Hwens shoulders that she was also feeling __________.What word best completes the final sentence of the paragraph?exhaustedirritatedexcitedenthusiastic Find the mean for the following set of data. Write the NUMBER ONLY for the answer.25, 27, 30, 15, 18, 24, 15 What decision is Wiesel faced with while he is in the hospital? What is Elies choice and why does he choose this option? the book noght Activity 7 Connecting ConceptsReview topics: Homeostasis, Acids and Bases, the Cell Membrane, and Functions of the Integumentary System in Unit 1 Learning Content to respond to the following 1-2 well-composed paragraphs written in your own words. If any outside sources are used to inspire and support your response, please properly cite and reference them in APA format.At the beginning of this unit we discussed the idea that our systems function on many levels organs, tissues, cells, and chemicals working together to fulfill their purpose. When everything works correctly, we are in a state of homeostasis. In this task, youll share your understanding of homeostasis and provide examples of how the body works to maintain homeostasis.Part One: Briefly compare and contrast negative and positive feedback in your own words make sure you discuss both similarities and differences.Part Two: Chemical Homeostasis: Define what a buffer is and briefly describe how it interacts with chemical substances to maintain the balance of pH needed by the body to function. Cellular Homeostasis: Saline is an isotonic solution; however, if a patient was accidentally hydrated with sterile water instead of saline:o Describe the tonicity/osmolarity of the water and the relative tonicity/osmolarity of the patients red blood cells.o What will happen to the patients red blood cells over time as they attempt to reach equilibrium? Are the cells maintaining homeostasis as they undergo this process justify your answer. Tissue/Organ Homeostasis: o Describe 2 roles of the skin in homeostasis making sure to include how a specific organ, tissue, cell, or chemical related to the skin helps the body maintain the proper conditions to function. Type your paragraph(s) here:Click or tap here to enter text. Activity 7 Connecting ConceptsReview topics: Homeostasis, Acids and Bases, the Cell Membrane, and Functions of the Integumentary System in Unit 1 Learning Content to respond to the following 1-2 well-composed paragraphs written in your own words. If any outside sources are used to inspire and support your response, please properly cite and reference them in APA format.At the beginning of this unit we discussed the idea that our systems function on many levels organs, tissues, cells, and chemicals working together to fulfill their purpose. When everything works correctly, we are in a state of homeostasis. In this task, youll share your understanding of homeostasis and provide examples of how the body works to maintain homeostasis.Part One: Briefly compare and contrast negative and positive feedback in your own words make sure you discuss both similarities and differences.Part Two: Chemical Homeostasis: Define what a buffer is and briefly describe how it interacts with chemical substances to maintain the balance of pH needed by the body to function. Cellular Homeostasis: Saline is an isotonic solution; however, if a patient was accidentally hydrated with sterile water instead of saline:o Describe the tonicity/osmolarity of the water and the relative tonicity/osmolarity of the patients red blood cells.o What will happen to the patients red blood cells over time as they attempt to reach equilibrium? Are the cells maintaining homeostasis as they undergo this process justify your answer. Tissue/Organ Homeostasis: o Describe 2 roles of the skin in homeostasis making sure to include how a specific organ, tissue, cell, or chemical related to the skin helps the body maintain the proper conditions to function. Type your paragraph(s) here:Click or tap here to enter text. Fill in the dialogue with the correct word from the bank.estsbientalgustotestgraciasSeorapresentocmoCarlos: Hola, Sara. QuL?Sara: Muy bien, gracias, y?Carlos: No muyHoy es lunes.Sara: Carlos, tea mi maestra de espaol, laPierce.Sra. Pierce: MuchoCarlos. ests?Carlos: Estoy terrible. Y usted? Cmohoy?Sra. Pierce: Regular. Cmot, Sara?Sara: Estoy muy bien, which of the following things did catherine ii do?a. catherine II ruled from tyranny standpoint.b. catherine II abolished abolished serfdom in her country.c. catherine II started a system of elementary education By beginning and ending "For the Union Dead" with images of breaking bubbles, Robert Lowell wants the reader torecognizethat Colonel Shaw should never have been given a monument and he would like to break itthat the aquarium should be rebuilt in the place where the monument to Colonel Shaw is standingthat the monument of Colonel Shaw is no more meaningful than the torn down aquariumthat the monument of Colonel Shaw, like the aquarium, will one day likely be destroyed and forgotten Drageachtle to the correct locationIdentity the viewpoints of the Republican Party and the Democratic Party on the subject of increasing taxes.Higher taxes enablethe government todo more for society,such as fund welfareprogramsHigher taxes make itharder for companieslo grow and makeprofits, which hasa negative impacton the economyRepublican PartyDemocratic Party Alice invests $5,000 at age 28 from the signing bonus of her new job. She hopes the investments will be worth $20,000 when she turns 40. If the interest compounds continuously, approximately what rate of growth will she need to achieve her goal? Suppose that ABC and DEF are both supplementary to XYZ, and XYZ is a right angle. Name all of the remaining right angles. A. Both ABC and DEF are right angles. B. Only ABC is a right angle C. Only DEF is a right angle. D. Neither ABC nor DEF is a right angle. I have 3/4 of all my kittens and 3/4 of a kitten. How many kittens do I have? what makes lasagna unique Which evidence from the passage supports the inference that Gandhi experienced racism in SouthAfrica?AThe washerman was not punctual in delivering the clean laundry.B.Gandhi had to do his own washing and ironing.C.A barber refused to cut Gandhi's hair because he had black skin.D.Gandhi's friends in court laughed at his bad haircut. PLSSSSSS helpWill give brainliest and 35 points to the person that helps me :) I. Change the following sentences from direct to indirect speech.a) Congratulations! You have come first in the exams,' the principal said tome.b) Mohit's father said, 'We must not watch TV while having our dinner.'c) What an expensive car he drives!' remarked Rahul's neighbour.d) 'How well you speak German,' his teammate remarked.e) 'Hurry up!' said Viru's mother. The bus will be here in a minute.'f) The policeman ordered the truck driver, 'Show yourlicence.g) You will have to surrender your passport,' the officer said to the passenger.h) My grandfather said, May you have a long life!i) Mr Jain said to his colleague, 'Will you please drop me at the airport?'i) Light travels in a straight line,' the teacher explained.k) 'I saw an interesting film last evening,' said my friend.1) The caller asked, May I speak with Shweta?'m) May I know who is on the line?' her father enquired.n) 'Ouch! The bee stung me!' the child said. identify two conjugate base for each compound HCN and HBr