Anagram Program in Python
Python Program to check if words are anagram Python Program for anagram A program that takes the number of test
Read morePython Program to check if words are anagram Python Program for anagram A program that takes the number of test
Read morePython program for selection sort algorithm # Selection sort method to sort an arraydef selectionsort( aList ): for
Read more# Merge sort function which uses recursive method to divide and sort the listdef mergeSort(alist): print(“Splitting “,alist) if len(alist)>1: mid
Read more# insertionsort() function to implement insertion sortdef insertionsort( aList ): for i in range( 1, len( aList ) ): tmp
Read more#function for bubble sort which takes array as parameterdef bubblesort( A ): for i in range( len( A ) ):
Read moredef is_valid_sequence(dna): ”'(str) -> bool Return True if dna sequence is valid >>>is_valid_sequence(‘AAAAA’) True >>>is_valid_sequence(‘TTTTT’) True >>>is_valid_sequence(‘CCCCC’) True
Read more