Anonymous
Yes it is.
And yeah. the standart doesn't specify the exact algorithm to be used
Nassrullah
I see your code and i can make some assumptions :)
My code is just great. Admit it please.
C.
Wat? Where is the logic?
We just use what they programmed to us because they know what is better.
C.
Your words.
Anonymous
C.
If you talk sooooo much
Anonymous
So make one better
Why should I, lol? This doesn't work that way
C.
You must be able to do a perfect algo
C.
Yes it does.
C.
Everybody can just criticize and show other's errors.
C.
But can you do better, if you're humiliating him?
Anonymous
If you think that you can code better than standart tools — in 90% you are bad coder
C.
If I can't be better than standard, I am a bad coder.
C.
Now again: where is your proof?
Anonymous
But can you do better, if you're humiliating him?
I didn't say that he is stupid lol I just said that stdlib are smater than him
Anonymous
Now again: where is your proof?
Benchmarks, general sense
Anonymous
That is saying someone is stupid.
Your logic is bad, sorry Take some classes
C.
Show us.
C.
One you did using stdlib and ours for comparison.
Anonymous
Then do it.
Why should I do something, if it is obvoius and easy to google? The dialog is over
C.
Your logic is bad, sorry Take some classes
Sure. Give me some, oh God of the Reason, Logic Lord
Anonymous
That is saying someone is stupid.
No, It's not. We can't be better than std libraries. If you want to be better than that then you should do research and develop new optimized algorithm that doesn't exit till date.
Nassrullah
I don't take what he said as humiliation. 😊
Anonymous
I don't see any point in conituing this If you think you can do it better — do it But it is not the way best companies and developers do things
Badugar
Merge Sort ... I thought Quick Sort is the fastest one. 🤔
Anonymous
Merge Sort ... I thought Quick Sort is the fastest one. 🤔
No, this not quiet true. Quick Sort's worst case is O(NlogN)
C.
Merge Sort ... I thought Quick Sort is the fastest one. 🤔
It has some bad cases where it gets really slow
Nassrullah
Danya. Thompson is advicing you to writte everything from scratch and let your stdlib down.
C.
Θ(nlogn)
Anonymous
Danya. Thompson is advicing you to writte everything from scratch and let your stdlib down.
And stroustrup and c++ comittee says the other thing — so what? I'm not fan of Thompson
C.
For example ?
One second, I'll see the case.
Anonymous
Sorry, I'm not a expert in O-notation
Anonymous
https://en.wikipedia.org/wiki/Introsort This is what used in current implementations
C.
Sorry, I'm not a expert in O-notation
If I remember correctly O is worst Θ is average o is best
Dima
:O
Anonymous
For example ?
When the maximum or minimum element is always chosen as pivot.
vps Pro
Can any one tell me the best source to learn C & C++ perfectly :) .
Anonymous
No one knows C++ perfectly
vps Pro
C.
Can any one tell me the best source to learn C & C++ perfectly :) .
The one that you think it makes you learn better. literally.
Anonymous
Can any one tell me the best source to learn C & C++ perfectly :) .
C Programming language by Kernighan and Ritchie is good.
Badugar
Can any one tell me the best source to learn C & C++ perfectly :) .
Pick small problems for beginning, e.g. from Math.
Mirko
excuse all..
Mirko
who know persian... can contact me?
C.
Pick small problems for beginning, e.g. from Math.
URI Online Judge website has a lot of problems that you can implement in any programming language
vps Pro
Are there Arab programmers in the group?
Badugar
A bunch of. Look at the member list.
vps Pro
A bunch of. Look at the member list.
thank you .but they can't know them because they have fake names :(
Badugar
Can't help you further with that, sorry. ¯\_(ツ)_/¯
Badugar
When the maximum or minimum element is always chosen as pivot.
Well, but normally quicksort takes the element in the middle as a pivot.
محمد نجم
https://www.facebook.com/groups/166172723733784/permalink/949044485446600/
C.
Well, but normally quicksort takes the element in the middle as a pivot.
But not always you know which element it is, so it gets slow.
Nassrullah
I know a great C book in french that's why i'm asking him. It's not OT Sir.
محمد نجم
Nassrullah
🤣
vps Pro
If you want to shoot, choose the big booty $£€
Badugar
Oh boy.
محمد نجم
Oh boy.
😁 😁 😁 😁
Jhagrut
[13/09, 23:32] JJ: #include<stdio.h> #include<stdlib.h> int main() { int a; float b,c; //printf("write your withdraw amount"); scanf("%d\n", &b); //printf("write your bank balance"); scanf("%.2f\n", &a); //.2f is for points of precision c=b+0.5 if (a>c && b%5==0) { printf("%.2f\n", ((a-b)-0.5) ) ; //new balance on successful transaction } else{ printf("%.2f\n", a) ; } return 0; } HS08TEST codechef can anyone pls point out mistake in this code *C CODE*
Jhagrut
[13/09, 23:39] JJ: prog.c: In function ‘main’: prog.c:9:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘float *’ [-Wformat=] scanf("%d\n", &b); ^ prog.c:11:17: warning: unknown conversion type character ‘.’ in format [-Wformat=] scanf("%.2f\n", &a); //.2f is for points of precision ^ prog.c:11:15: warning: too many arguments for format [-Wformat-extra-args] scanf("%.2f\n", &a); //.2f is for points of precision ^~~~~~~~ prog.c:13:1: error: expected ‘;’ before ‘if’ if (a>c && b%5==0) ^~ prog.c:7:13: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] float b,c; ^ [13/09, 23:41] JJ: Input Positive integer 0 < X <= 2000 - the amount of cash which Pooja wishes to withdraw. Nonnegative number 0<= Y <= 2000 with two digits of precision - Pooja's initial account balance. Output Output the account balance after the attempted transaction, given as a number with two digits of precision. If there is not enough money in the account to complete the transaction, output the current bank balance. Example - Successful Transaction Input: 30 120.00 Output: 89.50 Example - Incorrect Withdrawal Amount (not multiple of 5) Input: 42 120.00 Output: 120.00 Example - Insufficient Funds Input: 300 120.00 Output: 120.00
Jhagrut
Error and question
Jhagrut
I'm not able to understand the error
I_Interface
Omg