mempool

A place to chat about the Bitcoin Stackexchange, Bitcoin in ge...
Feb 13, 2018 11:40
Best resource I have found on bitcoin and blockchain for beginner youtube.com/watch?v=xwA2TkcAQgQ, it has complete playlist and covers in lot of depth
 
Mar 7, 2017 10:35
I will try to make a challenge out of it
Mar 7, 2017 10:35
It is not really compliacted
Mar 7, 2017 10:32
Can someone help me
Mar 7, 2017 10:29
@Leo Can you help me?
Mar 7, 2017 10:29
@JanDvorak
Mar 7, 2017 10:29
, output a single line containing a single integer, which is the minimum possible size of maximum block of consecutive days of the same status achievable.
Mar 7, 2017 10:29
@Mego Thanks
Mar 7, 2017 10:28
that it all
Mar 7, 2017 10:28
a flip mean we can change 0 to 1 , or 1 to 0
Mar 7, 2017 10:28
just it just a string of 1's and 0's will be given
like
11000111000
And we are allowed k number of flips
Mar 7, 2017 10:27
I would make it min
Mar 7, 2017 10:27
no i wont be
Mar 7, 2017 10:27
please give me link i would see there myself, but i am not able to find such a simple problem on other competetive sight
Mar 7, 2017 10:26
if you knew this problem from someelse site
Mar 7, 2017 10:26
and nothing else
Mar 7, 2017 10:26
so that i could debug it
Mar 7, 2017 10:26
I am not saying do my homework or this , i do not even want your code, i was just asking why is mine failing which test cases
Mar 7, 2017 10:25
If i post it here, then
Mar 7, 2017 10:24
and mine comes under it
Mar 7, 2017 10:24
@Mego Here it says general discussion for codegolf.stackexchange.com
Mar 7, 2017 10:24
Mar 7, 2017 10:23
and mine is giving correct answer for 5 of them
Mar 7, 2017 10:23
each having 1000's of test cases
Mar 7, 2017 10:23
See there are 9 input files
Mar 7, 2017 10:23
Mar 7, 2017 10:22
i have done the code
Mar 7, 2017 10:22
nothing else
Mar 7, 2017 10:22
in which my fails
Mar 7, 2017 10:22
It is ok, i Want test cases
Mar 7, 2017 10:21
sorry
Mar 7, 2017 10:21
a flip mean we can change 0 to 1 , or 1 to 0
Mar 7, 2017 10:20
And we are allowed k number of flips
Mar 7, 2017 10:20
11000111000
Mar 7, 2017 10:20
like
Mar 7, 2017 10:20
it is just a string of 1's and 0's will be given
Mar 7, 2017 10:20
Sir, @mego I saw your profile and it is there you solve programming challenges and puzzle , this is a math puzzle
Mar 7, 2017 10:17
@Mego
Mar 7, 2017 10:17
and then asked for help
Mar 7, 2017 10:17
Some test cases are giving false and i have debugged for hours
Mar 7, 2017 10:16
and it is working too
Mar 7, 2017 10:16
I have made the code
Mar 7, 2017 10:16
#include<stdio.h>
#include<stdlib.h>
#include<string.h>




int main(){



   int test_cases;


   scanf("%d" , &test_cases);


   while(test_cases--){


   int length;
   int flips;

    scanf("%d %d" , &length , &flips);

    int string[length];
    int occurence[length+1];
    memset(occurence,0,sizeof(occurence));


    int i = 0;
    int way1 = 0;
    int way0= 0;
    int count1 = 1;
    int count0 = 0;
    int temp;
    int count = 1;

    int thatmax = 0;




    while(i<length){




        scanf("%1d" , &string[i]);
Mar 7, 2017 10:16
No i have done it
Mar 7, 2017 10:09
Can someone ?
Mar 7, 2017 10:05
still some are failing
Mar 7, 2017 10:05
it is giving correct answers to many test cases
Mar 7, 2017 10:04
i have debugged it long enough still not able to guess where it is going wrong
Mar 7, 2017 10:04
but there are some test cases it is failing in
Mar 7, 2017 10:04
I have done the code