Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 0.1 Write a function that takes two strings (arrays of character) A, B and if A and B are the same output yes otherwise

image text in transcribed
Problem 0.1 Write a function that takes two strings (arrays of character) A, B and if A and B are the same output yes otherwise no. Question 0.2 Write a program to read an integer number n and then read n integer numbers and print out the third largest number of these numbers. Problemi 0.3 Write a code that prints out all the subset of size m = 3 from set {1,2,3, . . . , n- 1, n) for a given number n. For ezample the subset of size 3 from set 1,2,3,4,5) are: Problem 0.4 Write a program that reads n points in the plane (2D plane) and find the closet pair of points (the input is n lines of coordinate r,y ) Problem 0.5 Write a functions that takes a string (arrays of character) A and convert all the lower alphabet character to upper alphabet character. (e.g. If A = "aA12a * e', then output should be B-"AA12A * E" ). Problem 0.6 Write a code that decides whether a particular element x is in a sorted (de- scending order) array A of n integer. Your code should be fast and take advantage of the fact that A is sorted. Problem 0.7 Write a program that takes two sorted array A, B of size m, n respectively and merge these two arrays into a sorted array C For example if A=[1, 4, 5, 7, 8] and B-24,6,8,9,10] then C-12.4.4.5,6,7,8,8,9,1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

=+9. Did you answer the consumer's question Why buy?

Answered: 1 week ago

Question

Explain the functions of financial management.

Answered: 1 week ago

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago

Question

Discuss the goals of financial management.

Answered: 1 week ago

Question

2. What are your challenges in the creative process?

Answered: 1 week ago