Search found 131 matches

by Riyad
Fri Feb 13, 2004 10:15 am
Forum: Algorithms
Topic: [Q]Sorting
Replies: 3
Views: 1255

hey , it is possible to sort a sequence using two stacks and 2 extra variables . it is very easy to implement bubble sort using only 2 stacks and 2 variables .but to implement it with only 2 stacks [not using any temporary variables ] is impossible . so if u r need , can allow two extra variable i c...
by Riyad
Sat Jan 31, 2004 5:04 pm
Forum: Volume 106 (10600-10699)
Topic: 10611 - The Playboy Chimp
Replies: 44
Views: 18479

THANX

HI PRINCEK ,

THANX FOR U R IO . I REALIZED MY STUPID MISTAKE . I GOT IT FIXED . AND GOT AC .

NICE HINT :wink:
Riyad
by Riyad
Sat Jan 31, 2004 8:44 am
Forum: Volume 106 (10600-10699)
Topic: 10611 - The Playboy Chimp
Replies: 44
Views: 18479

10611 - The Playboy Chimp

hi , i am getting WA in this Prob . According to myself the problem statement is some thing like this : [cpp]YOU R GIVEN A LIST OF NON DECREASING SORTED NUMBER . AND AS AN INPUT A NUMBER WILL BE GIVEN , U HAVE TO FIND OUT THE LARGEST NUMBER SMALLER THAN THE SPECIFIED NUMBER AND THE SMALLEST NUMBER L...
by Riyad
Thu Jan 29, 2004 8:01 am
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 33226

Hey Some One Help Me In 793,,, WA all the time

hey is there some one who could help me in 793 ? i am getting wa all the time . in the previous post sohel mentioned a bug which i guess i got fixed . but still i am getting WA all the time . plizzzzzzzz help me in this . is there any tricky input ?????????????here is some portion of my QUERY and UP...
by Riyad
Wed Jan 28, 2004 5:34 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 47576

Sorry for being stupid :(

hey i got it AC . i did not counter the inputs well . i was missing the output for 0 which i got it right 8)
Bye
Riyad
by Riyad
Wed Jan 28, 2004 5:17 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 47576

!!!!!!!!!!!!!!!!!!!!!!!!!!

POST REMOVED
by Riyad
Fri Jan 23, 2004 11:07 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 47576

HEY WA IN THIS

hey some one help me plizzzzzzz . i am getting wa at this after rejudgement . is there any tricky input . i hate to paste code but i am really very confused with this prob. i know that the prob statement has changed and it is changed to 1000 instead of 500. here is part of my code . [cpp]BINT result...
by Riyad
Fri Dec 19, 2003 6:25 am
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 33226

hey sohel , thanx once again for replying . i have changed my query function to tackle the problem u mentioned . but i am still getting WA . My Changed Query Function is :- [cpp]void init(){ int i ; for(i=0;i<(sucks+1);i++){ p =-1; } } int Query(int x , int y){ if((p[x]!=-1 && p[y]!=-1) && (p[x]==p[...
by Riyad
Sat Dec 13, 2003 5:24 pm
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 33226

help help !!!!!!!!!!!!!!!

hey sohel , i did not get u r second part of reply . that i dont have to check -1 in the function query . And using this method you don't have to check for -1 in your query function. i got the initialization part , that to initialize with index rather than -1 . help me plizzzzzzzzzzzzzz Bye Riyad
by Riyad
Tue Dec 09, 2003 7:45 pm
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 33226

793,problem taking input

i am receiving WA all the time . i guess i am having prob taking input and handle multiple input . ****is there some input for which my output is wrong ??? may i missing some thing ??? pliz help me in this code .......... [cpp]#include<stdio.h> #include<stdlib.h> int p[10000]; int sucks; void init()...
by Riyad
Wed Dec 03, 2003 5:59 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24238

hey for every body who is trying 333

the algorithm for the prob 333 as i mentioned before is not that complicated . but it has got a strict input set . i ll like to with draw this line ------->>>>>{{{{more over people tend to make it more complicated by saying their AC program has given an ISBN containing spaces in between as Correct I...
by Riyad
Tue Dec 02, 2003 3:24 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24238

some one help me to get 333 AC

i have tried all possible way to solve 333 . but after several submission i am continuously getting WA . i know the algorithm for this prob is not that complicated but for the difficult input set . so can any one help me in this , what i am missing and if have made any stupid mistake . [cpp] [/cpp] ...
by Riyad
Tue Dec 02, 2003 6:20 am
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 24238

333 , i have some question to ask ..........................

pliz help me in getting ans to the following questions :-- 1) what if there is illegal character inside a ISBN . will it count as a valid ISBN ????? example :- 0abc-13dfasdfa-162959-X 0 -13-162959-X====> contains space inside the ISBN 2)what if there is an X in front of the ISBN .that means containi...
by Riyad
Sun Nov 30, 2003 8:49 pm
Forum: Volume 102 (10200-10299)
Topic: 10245 - The Closest Pair Problem
Replies: 92
Views: 13407

10245 is getting me RTE , plizzzzzzzzzz help me :(:(:(

i am having trouble in the prob 10245 . i tried the brute force O(n^2) instead of the O(n*log(n)) . but i am getting RTE . My array of structure for storing the points are big enough i guess ,,10008.plizzzzzzzzzzz help me this. here is my code : [c] #include<stdio.h> #include<math.h> struct p{ unsig...
by Riyad
Fri Nov 21, 2003 10:09 am
Forum: Volume 104 (10400-10499)
Topic: 10407 - Simple division
Replies: 34
Views: 12259

GOT IT RIGHT BUDDIES

i got my mistake for this problem . i did not consider a special case , as a result WA . i now got my mistake corrected .every one should consider the case when there r only 2 number in the sequence . :wink:
Bye
Riyad

Go to advanced search