I have an original text that looks like this: We are AMS. We are a global total workforce solutions firm; we enable organisations to thrive in an age of constan
Problem I want to get input from a file of unknown length, separating the input to strings at a defined delimiter and saving some of them. After reading the ent
I need help with the following problem: How is it possible to extract a random value from the object below? const hellos = { English: "Hello",
I need to convert string to dictionary in a manner for example str1 = "00001000-0009efff : a 00100000-656b2fff : b" Output what I require is dict1 = {'a':['000
The code: https://pastebin.com/nW6A49ck /* C program to remove consecutive repeated characters from string. */ #include <stdio.h> int main() { cha
I have a list of strings: ignore_list = ["new job", "encountered error", "SLA"] and a list of dictionaries: ticket_list = [{"Title": "new job to action", "Leve
I would like to import a text file, with 14 columns with the symbol ";" as a column separator. So, if we have 14 columns, it means we'll find 13 ";" separators
If I defined an object in JS with: var j={"name":"binchen"}; How can I convert the object to JSON? The output string should be: '{"name":"binchen"}'
I have a List of strings as follows, List<string> str = new List<string>() { "7, 31", "2, 4", "5, 6" }; My input will be something like "1, 2" or
I find using String.Index really needs a lot of code in Swift, especially when it comes to methods of Range Swift doesn't have. Like in above code where I don't
I have a string variable containing a control character (newline). I want to output that variable but with the control character as its literal representation a
I am posting two solutions below which I tried in leetcode for the problem no : 344 https://leetcode.com/problems/reverse-string/ Solution 1 class Solution: def
This will soon be my first time publishing an iOS app, and I just finished writing my privacy policy and terms & conditions texts. Best idea I came up with
I'm trying to implement custom images in Roblox I'm using method of importing and applying the colors of each pixel, but if I don't compress it, the memory is t
How to change 1.3445 to 13445, 2.4444 to 24444 , and keep 1.20 not change. Thanks! md <- data.frame(value=c('1.3445','1.20','2.4444'))
this is my Node Structure; class Node { public: string data; Node *next; Node *child; }; Node * createList(string *arr, int n) { Node *head = NU
Dim path as String dim a as string dim b as string a = range("A4") // variable name in cell b = range("A106") // variable of other name in cell Workbooks.Open
I have a text file 1.txt which has following content: module abc I am trying to generate multi-line string that I need to add before module abc line in 1.txt.
Can anyone please tell that why the below written code isnt working , theres no error but its simply printing the string which was passed and
I need to implement a function to simplify the path of a directory for example "/home//foo/" need to be "/home/foo", i need to delete all the duplicate slashes