I am tasked to implement from scratch addition and subtraction of signed integers of arbitrary size. Such an integer is stored in an array of 64-bit unsigned in
I have to convert an Int arraylist to String Arraylist so JText in swing can print the numbers of the String ArrayList. private static ArrayLi
I have some string from speech recognizer and the value is random but in the same form (x,y...n) MyOrder = 'orange 2 grape 3 apple 4 mango 5 banana 1' How to a
Add a character in between a string How can I add a comma after every three characters in a string? For example, i have a string number = "200
The numbers in my results are of type integer, but I want to convert them to float. import sqlite3 connection = sqlite3.connect("mydatabase.db") my_cursor = con
Suppose I have the following lists of factor: factor_1 = c("A1", "A2", "A3") factor_2 = c("B1", "B2") factor_3 = c("C1", "C2", "C3", "C4") factor_4 = c("D1", "D
Working on this program that's supposed to take a vector of integers as input and return the one with the longest integer. Example (vector 20 738 5942 125) and
How can I generate random whole numbers between two specified variables in JavaScript, e.g. x = 4 and y = 8 would output any of 4, 5, 6, 7, 8?
I am fairly new to functional programming. Following is my code to check the sum of powered digits(Arsmstrong number check). Number is an input for example: 370
Table of a any number getting this error - on System.out.println(number+" x "+i+" = ",+number*i); (in the type PrintStream is not applicable f
I was trying to solve this problem on LeetCode where you have to reverse an integer using a function. The constraint is that if the reversed number goes outside
TimeTemp displays as such 168@06:43:23AM stationTime displays opening and closing times of service area stations as such 6AM-10AM I’ve separated TimeTemp
I'm trying to create an array that only allows strings to be passed through, no numbers at all. Is there a way to make this possible? I've tried the below expec
I have been trying to solve a codewar question but when I use char to int .I get absurd results. like I enter 3 as base and 3 as power but res
I am coming from looking at Rust and How do I detect unsigned integer multiply overflow? where in Rust they have checked_add, which is implemented like this: pu
Is there some c++ proposal for Integer literal for fixed width integer types like this? // i's type is unsigned int auto i = 10u; // j's type is uint32_t auto j
Is there some c++ proposal for Integer literal for fixed width integer types like this? // i's type is unsigned int auto i = 10u; // j's type is uint32_t auto j
The task The correct implementation should receive an array of int values and return an array of booleans where each element is a result of a check if a corresp
I want to get left value (LD) pipe separated value from the DataFrame column "'CA Distance Nominal (LD | au)" here is the code. when I convert the string to flo
I want to take multiple integer inputs in the same line. I know I can take str input and then convert them into integer in the next line but i