answersLogoWhite

0

There are alot of deciding factors in determining this answer. You must decide what language you are working with. You must also determine weather you need to maintain or impose order on the result.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Write a C program to remove duplicates in a string?

#include<stdio.h> main() { char s[50]; int i=0,j; printf("enter character string:"); while((s[i]=getchar())!='\n') { for(j=0;j<i;j++) if(s[j]==s[i]) i--; i++; } printf("after removing the duplicates the string is:"); for(j=0;j<i;j++) printf("%c",s[j]); }


How do you get the circumference of a cylinder with a string?

Wrap the string around the cylinder, mark where the end of the string touched itself, remove the string, and measure from the end of the string to the mark.


When DNA duplicates the duplicates?

chromosomes


How do you get rid of duplicate photos in iPhoto?

If it is just a few pictures then manually will be the most effective way. If there are numerous duplicates then there is a free iPhoto AppleScript to Remove Duplicates (See links below) or Duplicate Annihilator (paid for software).


How do you remove duplicate rows from a matrix using C language?

Sort the rows; the duplicates will then be grouped together. Scan from the top row; if the next row is a duplicate of the current row, remove it. If the next row is not a duplicate, make it the current row. Repeat until there is no next row. When complete, all the duplicates will have been removed.


What method of the string class removes all spaces from the beginning and end of a string object?

String a=" Suraj "; String t=a.trim(); this will remove all the leading and trailing white spaces


What cards should you remove from your Yugioh deck to make it have forty cards?

Take out duplicates and cards that you cannot use or do not have the cards required.


Which tab and which group in the ribbon houses the command button that allows you to remove duplicates in the excel sheet?

view tab, show group


Write a C function to remove duplicates from an ordered array for example if input is 11134458810 then output should be 1345810?

Assuming that the input has already been put into an int[] array, the function to remove duplicates will operate as follows. The function will create an output array that will accept each first unique int of the input array. A comparator will compare each following cell, ignoring duplicates until the end of the array is reached. The output array will then be printed.


Do you remove the string before cooking ham?

Yes, it is generally recommended to remove the string from a ham before cooking. The string is often used to hold the ham's shape, but it can prevent even cooking and proper flavor absorption. After cooking, if the ham was tied, you can remove any string or netting for easier slicing. Always check the packaging for specific instructions, as some hams may have different recommendations.


How can I fix a broken string on a guitar?

To fix a broken string on a guitar, you need to remove the broken string, replace it with a new one of the same gauge, and tune it to the correct pitch.


How do you remove whitespaces from a string in PHP?

<?php trim(ereg_replace( ' +', ' ', $extraWhiteSpace)); ?>