I have two lists of titles for jazz standards. Both lists have a couple thousand entries, and I would like to find the songs in the second list that are not co
I am trying to solve the Leet Code challenge 14. Longest Common Prefix: Write a function to find the longest common prefix string amongst an array of strings.
In my open source application, I use rented hosting with FTP. My application needs to read a list of files from a directory and parse it. However, some of the f
I have a UITextView and I want to line break each time a user is extending a limit of chars per line (let's say 30 chars per line is the maximum). And I want to
I'm trying to get user input and check if the user put in "y" or "n". Surprisingly, in the below code, neither the if nor the if else case executes! Apparently,
I have this string: myString = "Tomorrow will be very very rainy" I would like to get the start index of the word number 5 (very). What I do currently, I do sp
I am getting dynamic conditions through API to apply in the application. It could be any logical expression. The task is to run all the condition received in mo
I want to create an R function that inserts a "\n" after every n words in a string (where n is an argument). e.g. startstring <- "I like to eat fried potat
How can I convert a string such as: '20190501' To a string such as: '2019-05-01' Without first converting to datetime, for example: from datetime import
I have stored about 7 million biological protein sequences in text field of MySQL table (using InnoDB storage engine and latin1_swedish_ci collation). Sequence
I am trying to write a function that will remove the first occurrence of a string from another string, like: remove("an", "banana") == "bana" The goal is not t
i'm learning Python and have began with Google's Python Automation Beginner course. Idk if i chose it right but im already in week 4 and now have started facing
I tried to write a custom type from a book, my compiler gives an error E0393 using a pointer to an incomplete type of the "String" class::Srep" is not allowed i
I want to remove consecutive "a" substrings and replace them with one "a" from a string without importing any packages. For example, I want to get abbccca from
bool check(const char *text) { char c; while (c = *text++) { if ((c & 0x80) && ((*text) & 0x80)) { return true;
i am trying to create a program for string anagram that follows these conditions: method should allow only letters, white space, commas and dots in an anagram.
I've tryed to print out some array of strings but faced error: excess elements in char array initializer Please make a hint what's worng with this code? Step 1
I want to write a function that concatenates multiple strings into one one string, but each part is marked with quotation marks and separated by a comma. The fu
I have the following list: values = ['A', 'C', 'B', 'D'] Is there a way I can get it to output the list as the following string? result = 'AC
I'm trying to implement a function which receives a variable number of strings and returns characters that appear at least in two strings: test_strings = ["hel