Похожие чаты

Ya actually i am solving a question in which the

user will give an input and that input is a string and the string is actually a binary code and the length of that string could be in the range of 0 to 30k and then i have to check that after converting binary to decimal is the number is devisible by 5 or not


now what i done simply
my algo

convert the string to an decimal integer and for that i am using the method Integer.parse(s); which was giving me the number format exception error and then i put it into a try and catch block but in the catch block i still have to check that binary is string is divisible by 5 or not so now what should i do ??

4 ответов

11 просмотров
Vishal-Jha Автор вопроса

@dburyak @shubhamsomu @AniVerma17

U just want to check if the input binary number is divisible by 5?

Vishal-Jha Автор вопроса

@Bittle

Do you realise that a 30K long binary string will be so big that it cannot be represented by an Integer?

Похожие вопросы

Обсуждают сегодня

Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
А чем вам питонисты не угодили?😂
.
79
So total 101m burned Today?
Simu
18
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
всем доброго времени суток! имею вопрос: как понять ТОЧНО, что на нексус производится атака или он перегружен? исходные данные: - Nexus OSS 3.67.1-01 на OrientDB - Total co...
Michael Kostelcev
11
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Ребят, а за скок можно впарить анон чат с апишкой и веб админкой ?
Eugene Неелов
15
People that were staking their LRC20 LGCY and then chose to partake in the swap back to erc, did they receive just the initial amount staked or did they also receive their sta...
Tiger Whitehead 🏴‍☠️
8
Since the new token has so many features, can I give you permission to just go ahead and stake them for me so I don’t have to do anything or ask Sig what I should do?
Coop
9
I'm already lost in the new tokenomics, so is it better or worse for us retail investors now? I try to estimate if this price is only short time dump or the new standard level...
Aρπακτική όρκα 🇨🇿🇬🇷
10
Карта сайта