Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 237 Weeks Ago |
Questions Answered: | 12843 |
Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
need someone to help me with these 5 simple code to work as expected
Â
1 Write a function void shift_right(int* array, int n) which shifts every singleelement of the array one position to the right, with the rightmost element beingwrapped around to the leftmost position. For example, if values initiallycontains the integers [1, 2, 3, 4, 5], once the code has executed it wouldcontain [5, 1, 2, 3, 4].2 Write a function void sanitize(char *s) that removes duplicate characters fromthe string. For example, given a string "crazyfortruffle" the returned stringshould be "crazyfotule".3 Write a function char * twentify(char s[]) that give a string will replace allspaces with '%20'.4 Write a function Lnode *backToFront (Lnode * head) that given a list of nodestakes the node at the end of the list and moves it to the front of the list bychanging pointers, leaving the relative order of the other nodes unchanged. Thisfunction must not create new nodes or change the value field of existing nodes.5 Given an unsorted linked list, and without using a temporary buffer, write afunction Lnode *removeDuplicates (Lnode *head) that will delete any duplicatesfrom the linked list.
Attachments:-----------