I am trying to create sequences of number of 6 cases, but with 144 cases intervals. Like this one for example c(1:6, 144:149, 288:293) 1 2 3 4 5 6 144 145 146 147 148 149 288 289 290 291 292 293 How could I generate automatically such a sequence with
Have been looking for regex for the Indian Mobile numbers and Landline numbers where could find some questions but with no relevant answers. My requirement is - Mobile Numbers with '0' or with '+91' or without them. Next Landline numbers with code li
We have a test server which hosts lots of test applications. when there are lots of process (or threads) running, we found new process or thread cannot be created: for C program: "cannot fork, resource unavailable" for java program: it throws ex
Hello I want to do a really simple thing. Just make a template function for any numbers. I actually want as little as ability to "add". In C++ it would be really trivial like this: template <typename T> inline T add (T a, T b) { return a +
Just like older mobile phones' keypads work. I should input a string of numbers and the program should print out a text based on those numbers. e.g: Input: 4448 9666777557777 should output to: ITWORKS. Here's my code so far but it's not printing out
How can I generate all possible combinations, in Excel, by using only 3, 6 and 9 in a 5 digit number? Naturally digits can repeat. I am trying to learn more about EXCEL and this is something I cannot figure out - how to generate all possible combinat
It's proven that, the Karmarkar-Karp's differencing algorithm always performs better than greedy for 2-way partitioning problems, i.e. partitioning set of n integers to 2 subsets with equal sums. Can this be extended to k-way partitioning as well? If
i need a regular expression that match the following: The Word has at least 2 Numbers The Numbers are not consecutive This Word should be ok: abc2def3das gh2ik7lm2fgd This Word should not be ok: abc20def3asd abc262def93f34 How can i do this with regu
I need to define a function which repeats a number 3 times. I can only get it to work as a list where the output is [1, 1, 1] if the input is 1. However I need the output to be 111 This is what I have def repeat_number(num): if not type(num) is int:
How do i randomly generate ellipses in JavaScript? For my game, you need to dodge falling boulders, so the ellipses have to fall down slowly. There can't be more than 3 or 4 circles falling at a time, and they need to speed up as the game goes on, in
I'm trying to understand how to user parseFloat to convert a string to a number--which by the way changes based on a users rewards club points. Here's the code I've written so far: var ptsBalance = jQuery('.value.large.withCommas').text(); // get cur
I'm supposed to convert the following negative numbers to 8-bit binary using both (i) ones complement, and (ii) twos complement: -76 -203 -18 -177 I know how to do -76 and -18... • -76 In binary (positive): 01001100 i) 10110011 ii) 10110100 • -18 In
I have some code that produces random numbers for an AI but I am unsure how the percentage sign works. This is my code that creates the numbers: ey[i]=rand()%950; ex[i]=rand()%300+800; ev[i]=rand()%10-5; Im using C++ in Visual Studio Thanks in advanc
I have a problem to solve. I scanned 500 barcodes (barcode numbers Excel), which are placed in column A. Now I want to check if the barcode that a given customer returned to me is one of the 500 barcodes scanned before. Any suggestions? Thanks for th
Based on the the table in the image below: I want to return a value from column G if the value in column A with the same row is equal to a value I specify. For example, in the case of the linked image, Return 6120 from column G if the value in column
I'm trying to build a method that would get 4 numbers and returns the maximum number of them. I tried to write this code that gets 4 numbers but this not working: Input and output: double a = Math.max(10, 5, 4, 3); System.out.println(a); public stati
I have a list which contains the Filename from a given path, fileNamesList and from this list i would like to create a Alphabet list like if there are files name start with A then add A to list and like so upto Z and in the same way i want to create
I am trying to split a string of 10 numbers and (possibly) letters up and place them into an array. I know that the best way to do this is by using the .split() function that Java offers. I usually don't have a problem with it. However, I am now havi
This game gets the user to guess a 4 digit number and gives feedback straight after the user guesses displaying 'Y' if the user gets the number right and displays 'H' if the guess is at most 3 higher than the number and obviously the opposite of disp
I have a bunch of files named like this: 0468.xml 0474.xml 0475.xml 0481.xml I want to match whatever files there are in the directory whose name (without .xml extension) is a number greater than, let say, 0474. In other words, I want to match the la