Click here to Skip to main content
15,900,511 members

Comments by Priyanka Somani (Top 7 by date)

Priyanka Somani 10-Sep-21 11:30am View    
I'm getting error with this code -
for i in range(n):
x = int(input())
arr.append(x)
bcz when I comment this and uncomment value of arr and k which I've commented above then this gives no error and correct output as well.
Priyanka Somani 16-Jun-21 13:13pm View    
Any update what's the error. I'm still not getting it.
Priyanka Somani 16-Jun-21 4:08am View    
This won't work as I had already checked by debugging the code with cout statements. The only problem is with these 2 lines. It's a leetcode question and you can find these question there easily
Priyanka Somani 25-Mar-21 5:06am View    
When I comment the incremental line in for loop. Then program runs and gives output but wrong. Thus is means that it is bcz of these incremental or decrement in loops Can you tell a good debugger as I don't know anything about debugger
Priyanka Somani 25-Mar-21 4:35am View    
Updated now