Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Manchi sharing bro
did you mention the logic of checking the coantining of same character.
what is the time complexity of that solution
Sir can you please tell me if that is true we have to print YES else NO how to do this
Print permutations of string program
?
@@springhibernatetutes program to print permutations of string like abc is thereWe can arrange in 6 ways
This is not permutations this is just rotation.we will see permutations tomorrow
@@springhibernatetutes ok sir
public class IsRotation { public static void main(String[] args) { String s1= "samah", s2="hamas"; System.out.println(isRotation(s1,s2)); } public static boolean isRotation(String str1, String str2){ if(str1.length()!=str2.length()) return false; int strLength = str1.length(); for(int i=0;i
explain your code
Manchi sharing bro
did you mention the logic of checking the coantining of same character.
what is the time complexity of that solution
Sir can you please tell me if that is true we have to print YES else NO how to do this
Print permutations of string program
?
@@springhibernatetutes program to print permutations of string like abc is there
We can arrange in 6 ways
This is not permutations this is just rotation.we will see permutations tomorrow
@@springhibernatetutes ok sir
public class IsRotation {
public static void main(String[] args) {
String s1= "samah", s2="hamas";
System.out.println(isRotation(s1,s2));
}
public static boolean isRotation(String str1, String str2){
if(str1.length()!=str2.length())
return false;
int strLength = str1.length();
for(int i=0;i
explain your code