I wanted to see what the smallest number divisible by all one digit numbers was and instead of looking it up I created this.
I have a perl script with shebang as I want this script to print each line as it is executed. So I installed Devel::Trace and changed script shebang to
I've been struggling with foldr for a while now. i want to convert a list of ints to a single tuple that contains the sum of list and number of ints. for example [1,2,3,4] -> (10,4) the function i have below iterates through the list fine but only outputs the...
Today github is showing following error on my github repository:We found a potential security vulnerability in one of your dependencies. A dependency defined in ./package-lock.json has known security vulnerabilities and should be updated.
I'm trying to delete a specific line from a 12GB text file.I do not have the sed -i option available on HP-UX, and other options like saving to a temporary file aren't working because I have only 20GB space available with 12 GB already used by the text file.
I'm trying to write a function secondSmallest that returns the second smallest value in the list, or Nothing if there is no such value. Also, if the smallest value of the list occurs multiple times, it's also the second smallest. For example:
I am getting compilation errors if I make a copy of unique_ptr with custom deleter . Please some one help me out .
here's my JS code:I'm wondering how to select only the odd or even i'sUse Array operation mapOr simple loop
In Linux, is there a system call function whose definition calls another system call function? Or are all the system call functions exclusive to each other in the sense that any system call function doesn't call another system call function?
I am trying to write in Python a script that takes a string and returns a list of string by iteratively moves the letters in the original sequence.