Java Program to check both Strings are rotation of each other

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 11

  • @ramaratnamvlogs
    @ramaratnamvlogs 4 года назад +2

    Manchi sharing bro

  • @navraj1995
    @navraj1995 Год назад

    did you mention the logic of checking the coantining of same character.

  • @asifbasheerkhan2855
    @asifbasheerkhan2855 3 года назад

    what is the time complexity of that solution

  • @iittirupati_1059
    @iittirupati_1059 Год назад

    Sir can you please tell me if that is true we have to print YES else NO how to do this

  • @mohammedajazquadri7869
    @mohammedajazquadri7869 4 года назад +1

    Print permutations of string program

  • @samahmahdi5511
    @samahmahdi5511 10 месяцев назад

    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