Remove Duplicate Character From String || Remove Repeated Character || Java Program
#java
#javadsa
#coding
0:00 Intro
0:12 Lecture
SOURCE CODE
public class strdupliRem {
public static void RemoveStrDup(boolean arr[],String str,StringBuilder str1,int indx){
if(str.length()==indx){
System.out.println(str1);
return;
}
char current= str.charAt(indx);
if(arr[current-'a']==true){
RemoveStrDup(arr, str, str1, indx+1);
}
else{
arr[current-'a']=true;
RemoveStrDup(arr, str, str1.append(str.charAt(indx)), indx+1);
}
}
public static void main(String[] args) {
String str=new String("chandramohanp");
StringBuilder str1=new StringBuilder("");
boolean[] arr=new boolean[26];
RemoveStrDup(arr,str,str1,0);
}
}
En esta página del sitio puede ver el video en línea Remove Duplicate Character From String | Remove Repeated Character | Java Program de Duración hora minuto segunda en buena calidad , que subió el usuario Bio to CS 25 agosto 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 36 veces y le gustó like a los espectadores. Disfruta viendo!