1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nadya [2.5K]
2 years ago
12

Write a function isCString which accepts as arguments a const pointer to a char array and an integer for the size of the array

Computers and Technology
1 answer:
Umnica [9.8K]2 years ago
7 0

Answer:

Mnnmnkjhsgxlsjzgxfckabxvzuajs

You might be interested in
Write an algorithm (pseudo-code) that takes an unsorted list of n integers and outputs a sorted list of all duplicate integers.
nexus9112 [7]

Answer:

brainliest if it did help you

Explanation:

Given array : A[0...n-1]Now, create a count array Cnt[0...n-1]then, initialize Cnt to zero

for(i=0...n-1)

Cnt[i]=0 ---------O(n) time

Linearly traverse the list and increment the count of respected number in count array.

for(i=0...n-1)

Cnt[A[i]]++; ---------O(n) time

Check in the count array if duplicates exist.

for(i=0...n-1){

if(C[i]>1)

output (i); -----------O(n) time

}

analysis of the above algorithm:

Algorithm takes = O(1 + n + n + n)

                           = O(n)          

//java code

public class SortIntegers {

  public static void sort(int[] arr) {

    int min = arr[0];

    int max = arr[0];

    for (int i = 0; i < arr.length; ++i) {

      if (arr[i] > max) {

        max = arr[i];

      }

      if (arr[i] < min) {

        min = arr[i];

      }

    }

    int counts[] = new int[max - min + 1];

    for (int i = 0; i < arr.length; ++i) {

      counts[arr[i] - min]++;

    }

    for (int i = 0; i < counts.length; ++i) {

      if (counts[i] > 1) {

        System.out.print((i + min) + " ");

      }

    }

    

    System.out.println();

  }

  public static void main(String[] args) {

    sort(new int[] { 5, 4, 10, 2, 4, 10, 5, 3, 1 });

  }

}

7 0
3 years ago
How to reset maintenance light on toyota camry?
choli [55]
Best thing to Do is unplug your batteries or replace your bulbs<span />
7 0
4 years ago
Do you think that dealing with big data demands high ethical regulations, accountability, and responsibility of the person as we
kicyunya [14]

Answer:

i will help you waiting

Explanation:

4 0
3 years ago
If you have two tasks x and y, with y being a successor to x, if we mark x as undone (because it needs to be redone for some rea
Ierofanga [76]

Answer:

idk

Explanation:

sorry

7 0
3 years ago
To create smartart, switch to the insert tab and use a button in the ____ group.
Fynjy0 [20]
Insert tab then Illustration group
6 0
3 years ago
Other questions:
  • What are two reasons network devices are typically accessed through a cli?
    12·1 answer
  • Which signal types are represented by a continuous wave form?
    11·1 answer
  • Which of the following answers refers to a system containing mappings of domain names to various types of data, such as for exam
    6·1 answer
  • Sally is editing her science report about living things. She needs to copy a paragraph from her original report.
    15·2 answers
  • Hi hehehehehehehehehheeheh<br>​
    10·1 answer
  • Which of the following statements opens the file info.txt for both input and output? a) dataFile.open("info.txt", ios::in &amp;&
    11·2 answers
  • Helllllllllppppppppppp
    9·1 answer
  • What when can you expect technology to be effective?
    12·1 answer
  • write an assembly program that uses the output compare function of a timer to toggle an led every second
    6·1 answer
  • A device that turns hard copy, such as a paper document, into a digital format that can be viewed or manipulated on a computer i
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!