theash2473
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 11/15/2024 in #java-help
Adding character/s to a string has two different variations.
Sample code to understand all cases.
14 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 11/15/2024 in #java-help
Adding character/s to a string has two different variations.
Mentioned in here - https://stackoverflow.com/a/8688708/10841645
14 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 11/15/2024 in #java-help
Adding character/s to a string has two different variations.
Forgot to mention what I found. If first two operands has a string then it will become a string no matter how many oeprands. Otherwise it will be converted to an int.
14 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
Would someone like to take a look in this code and help me?
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
Something is missing always.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
In this code, the edge cases are not able to be incorporated in the code. which is having
(dividend = int_max , divisor=-1 )
or vice versa.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
This is the current one I am having. It seems that the most optimized code is the only one which is the solution. No other code will be able to work.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
I am not able to get the code right. I tried optimizing the code but I can't get to the correct solution.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/27/2024 in #java-help
I am getting TLE in Leetcode on question 29. Please help me optimize.
The case is giving int_min when it multiplies int_max by 2 in the for loop which should be the condition at which it gets out of the loop but it is creating infinite loop instead.
12 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/18/2024 in #java-help
In the bitwise compliment operator there is confusion. Please help if you can.
Why do they not mention it int he articles.
17 replies
JCHJava Community | Help. Code. Learn.
•Created by theash2473 on 10/18/2024 in #java-help
In the bitwise compliment operator there is confusion. Please help if you can.
Can you suggest one?
17 replies