Skip to content

saahil1292/fsdse-python-assignment-102

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Determine if a string s1 is a rotation of another string s2, by calling (only once) a function is_rotation.

Constraints

  • Can we assume the string is ASCII?
    • Yes
    • Note: Unicode strings could require special handling depending on your language
  • Is this case sensitive?
    • Yes
  • Can we use additional data structures?
    • Yes
  • Can we assume this fits in memory?
    • Yes

Instructions:

  • Program should be written in file build.py

  • Function name should be is_rotation.

  • Input

     Type:  String
     Value: s1 = 'hello'
            s2 = 'ohleol'
    
  • Expected Output

      Type:  Boolean
      Value: False
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%