Problem I have the following two approaches for writing a custom string reverse algorithm and I was hoping someone could […]
Tag: strings
Generate String with Random Consonants and Vowels
Problem Purpose This problem comes from this dailyProgrammer subreddit challenge. The task is to take an input of C / […]
Concatenating two substrings to provide the largest possible palindromic string
Problem The code extracts two substrings from different strings and concatinating them to provide the largest possible palindromic string. Objective: […]
Efficient Strip Special Characters
Problem I have a private function in PHP that takes a given URL string and just leave the Alpha or […]
Sorting an array of strings in C using insertion sort
Problem I am a Java programmer who has C this semester. Needless to say, my writing style is heavily influenced […]
Reusing strings read from I/O
Problem I am working on an application that reads lots of data from the network and puts it in a […]
Random String Generation module in Python
Problem The module is for facilitating random string generation. The example I use to explain it is the following: Instead […]
Count all vowels in string
Problem For a homework assignment, I was asked to complete this CodeStepByStep problem. It’s coded correctly and gave me a […]
Split string by last occurence of character within a range
Problem So I would like to split a string in two by the last space within the first 40 characters, […]
Returning matching substrings, of n length, at the beginning and end of a string
Problem I am going through the Java CodingBat exercises. Here is the one I have just completed: Given a string, […]