Which big number is bigger? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara The PPCG Site design is on its way - help us make it awesome! Sandbox for Proposed ChallengesIs q a quadratic residue of n?Determine if an Array contains something other than 2Does the sum of 2 numbers in the list equal the desired sum?Is this number a factorial?Test if two numbers are equalDo two numbers contain unique powers of 2Do two numbers contain unique factorials?Impossible cube maybeAm I divisible by double the sum of my digits?Check if a string is entirely made of the same substring
Raising a bilingual kid. When should we introduce the majority language?
What is this word supposed to be?
Married in secret, can marital status in passport be changed at a later date?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
Approximating integral with small parameter
Retract an already submitted recommendation letter (written for an undergrad student)
Is accepting an invalid credit card number a security issue?
Is it acceptable to use working hours to read general interest books?
Could moose/elk survive in the Amazon forest?
Expansion//Explosion and Siren Stormtamer
Does Feeblemind produce an ongoing magical effect that can be dispelled?
Map material from china not allowed to leave the country
Does Mathematica have an implementation of the Poisson binomial distribution?
How to avoid introduction cliches
Are these square matrices always diagonalisable?
Is there any hidden 'W' sound after 'comment' in : Comment est-elle?
Are all CP/M-80 implementations binary compatible?
Reattaching fallen shelf to wall?
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
What is /etc/mtab in Linux?
What is the best way to deal with NPC-NPC combat?
c++ diamond problem - How to call base method only once
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
A Paper Record is What I Hamper
Which big number is bigger?
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
The PPCG Site design is on its way - help us make it awesome!
Sandbox for Proposed ChallengesIs q a quadratic residue of n?Determine if an Array contains something other than 2Does the sum of 2 numbers in the list equal the desired sum?Is this number a factorial?Test if two numbers are equalDo two numbers contain unique powers of 2Do two numbers contain unique factorials?Impossible cube maybeAm I divisible by double the sum of my digits?Check if a string is entirely made of the same substring
$begingroup$
Input
Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.
Output
True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.
^ is exponentiation in this question.
Rules
This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.
You can output anything Truthy for True and anything Falsey for False.
Test cases
3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
code-golf
$endgroup$
|
show 2 more comments
$begingroup$
Input
Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.
Output
True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.
^ is exponentiation in this question.
Rules
This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.
You can output anything Truthy for True and anything Falsey for False.
Test cases
3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
code-golf
$endgroup$
1
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to1
and0
$endgroup$
– Unrelated String
43 mins ago
2
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
Suggested test case: wherea1,a2,a3
are equal tob1,b2,b3
, which should result in falsey.
$endgroup$
– Kevin Cruijssen
26 mins ago
2
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago
|
show 2 more comments
$begingroup$
Input
Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.
Output
True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.
^ is exponentiation in this question.
Rules
This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.
You can output anything Truthy for True and anything Falsey for False.
Test cases
3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
code-golf
$endgroup$
Input
Integers a1, a2, a3, b1, b2, b3 each in the range 1 to 20.
Output
True if a1^(a2^a3) > b1^(b2^b3) and False otherwise.
^ is exponentiation in this question.
Rules
This is code-golf. Your code must terminate correctly within 10 seconds for any valid input on a standard desktop PC.
You can output anything Truthy for True and anything Falsey for False.
Test cases
3^(4^5) > 5^(4^3)
1^(2^3) < 3^(2^1)
3^(6^5) < 5^(20^3)
20^(20^20) > 20^(20^19)
20^(20^20) is not bigger than 20^(20^20)
code-golf
code-golf
edited 22 mins ago
Anush
asked 46 mins ago
AnushAnush
869627
869627
1
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to1
and0
$endgroup$
– Unrelated String
43 mins ago
2
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
Suggested test case: wherea1,a2,a3
are equal tob1,b2,b3
, which should result in falsey.
$endgroup$
– Kevin Cruijssen
26 mins ago
2
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago
|
show 2 more comments
1
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to1
and0
$endgroup$
– Unrelated String
43 mins ago
2
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
Suggested test case: wherea1,a2,a3
are equal tob1,b2,b3
, which should result in falsey.
$endgroup$
– Kevin Cruijssen
26 mins ago
2
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago
1
1
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to
1
and 0
$endgroup$
– Unrelated String
43 mins ago
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to
1
and 0
$endgroup$
– Unrelated String
43 mins ago
2
2
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
Suggested test case: where
a1,a2,a3
are equal to b1,b2,b3
, which should result in falsey.$endgroup$
– Kevin Cruijssen
26 mins ago
$begingroup$
Suggested test case: where
a1,a2,a3
are equal to b1,b2,b3
, which should result in falsey.$endgroup$
– Kevin Cruijssen
26 mins ago
2
2
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago
|
show 2 more comments
5 Answers
5
active
oldest
votes
$begingroup$
JavaScript (ES6), 43 bytes
Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.
(a,b,c,d,e,f)=>b*c*(l=Math.log)(a)>e*f*l(d)
Try it online!
$endgroup$
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
add a comment |
$begingroup$
R, 42 bytes
function(a,b,c,d,e,f)log(a)*b*c>log(d)*e*f
Try it online!
$endgroup$
add a comment |
$begingroup$
05AB1E, 11 9 bytes
εć.²š}P`›
Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)
-2 bytes thanks to @Emigna
Input as [[a1,a2,a3],[b1,b2,b3]]
.
Try it online or verify all test cases.
Explanation:
ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B
$endgroup$
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach withć
, but completely forgot about usingš
(not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
17 mins ago
add a comment |
$begingroup$
05AB1E, 11 bytes
Uses the method from Arnauld's JS answer
.²**U.²**X‹
Try it online!
2F.²**ˆ}¯`›
also works at the same byte count
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meantb1=b2=b3=20
,yeah that doesn't terminate.
$endgroup$
– Emigna
34 mins ago
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
|
show 2 more comments
$begingroup$
Wolfram Language (Mathematica), 23 bytes
#2^#3Log@#>#5^#6Log@#4&
Try it online!
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "200"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f184734%2fwhich-big-number-is-bigger%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
JavaScript (ES6), 43 bytes
Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.
(a,b,c,d,e,f)=>b*c*(l=Math.log)(a)>e*f*l(d)
Try it online!
$endgroup$
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
add a comment |
$begingroup$
JavaScript (ES6), 43 bytes
Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.
(a,b,c,d,e,f)=>b*c*(l=Math.log)(a)>e*f*l(d)
Try it online!
$endgroup$
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
add a comment |
$begingroup$
JavaScript (ES6), 43 bytes
Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.
(a,b,c,d,e,f)=>b*c*(l=Math.log)(a)>e*f*l(d)
Try it online!
$endgroup$
JavaScript (ES6), 43 bytes
Returns $true$ if $a^b^c > d^e^f$, or $false$ otherwise.
(a,b,c,d,e,f)=>b*c*(l=Math.log)(a)>e*f*l(d)
Try it online!
edited 20 mins ago
answered 37 mins ago
ArnauldArnauld
82.2k798337
82.2k798337
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
add a comment |
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
1
1
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
$begingroup$
Eheh we had the same idea... and almost the same byte count :P
$endgroup$
– digEmAll
33 mins ago
add a comment |
$begingroup$
R, 42 bytes
function(a,b,c,d,e,f)log(a)*b*c>log(d)*e*f
Try it online!
$endgroup$
add a comment |
$begingroup$
R, 42 bytes
function(a,b,c,d,e,f)log(a)*b*c>log(d)*e*f
Try it online!
$endgroup$
add a comment |
$begingroup$
R, 42 bytes
function(a,b,c,d,e,f)log(a)*b*c>log(d)*e*f
Try it online!
$endgroup$
R, 42 bytes
function(a,b,c,d,e,f)log(a)*b*c>log(d)*e*f
Try it online!
answered 34 mins ago
digEmAlldigEmAll
3,664515
3,664515
add a comment |
add a comment |
$begingroup$
05AB1E, 11 9 bytes
εć.²š}P`›
Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)
-2 bytes thanks to @Emigna
Input as [[a1,a2,a3],[b1,b2,b3]]
.
Try it online or verify all test cases.
Explanation:
ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B
$endgroup$
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach withć
, but completely forgot about usingš
(not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
17 mins ago
add a comment |
$begingroup$
05AB1E, 11 9 bytes
εć.²š}P`›
Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)
-2 bytes thanks to @Emigna
Input as [[a1,a2,a3],[b1,b2,b3]]
.
Try it online or verify all test cases.
Explanation:
ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B
$endgroup$
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach withć
, but completely forgot about usingš
(not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
17 mins ago
add a comment |
$begingroup$
05AB1E, 11 9 bytes
εć.²š}P`›
Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)
-2 bytes thanks to @Emigna
Input as [[a1,a2,a3],[b1,b2,b3]]
.
Try it online or verify all test cases.
Explanation:
ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B
$endgroup$
05AB1E, 11 9 bytes
εć.²š}P`›
Port of @Arnauld's JavaScript and @digEmAll's R approaches (I saw them post around the same time)
-2 bytes thanks to @Emigna
Input as [[a1,a2,a3],[b1,b2,b3]]
.
Try it online or verify all test cases.
Explanation:
ε # Map the (implicit) input-lists to:
ć # Extract the head; pushing the remainder and head separated to the stack
.² # Get the logarithm with base 2 of this head
š # And prepend it back to the remainder
}P # After the map: take the product of both mapped inner lists
` # Push both integers separated to the stack
› # And check if A is larger than B
edited 10 mins ago
answered 22 mins ago
Kevin CruijssenKevin Cruijssen
43.5k573222
43.5k573222
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach withć
, but completely forgot about usingš
(not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
17 mins ago
add a comment |
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach withć
, but completely forgot about usingš
(not sure why now that I see it, haha). Thanks!
$endgroup$
– Kevin Cruijssen
17 mins ago
1
1
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
You second version can be εć.²š]P`›
$endgroup$
– Emigna
18 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach with
ć
, but completely forgot about using š
(not sure why now that I see it, haha). Thanks!$endgroup$
– Kevin Cruijssen
17 mins ago
$begingroup$
@Emigna Ah nice, I was looking at an approach with
ć
, but completely forgot about using š
(not sure why now that I see it, haha). Thanks!$endgroup$
– Kevin Cruijssen
17 mins ago
add a comment |
$begingroup$
05AB1E, 11 bytes
Uses the method from Arnauld's JS answer
.²**U.²**X‹
Try it online!
2F.²**ˆ}¯`›
also works at the same byte count
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meantb1=b2=b3=20
,yeah that doesn't terminate.
$endgroup$
– Emigna
34 mins ago
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
|
show 2 more comments
$begingroup$
05AB1E, 11 bytes
Uses the method from Arnauld's JS answer
.²**U.²**X‹
Try it online!
2F.²**ˆ}¯`›
also works at the same byte count
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meantb1=b2=b3=20
,yeah that doesn't terminate.
$endgroup$
– Emigna
34 mins ago
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
|
show 2 more comments
$begingroup$
05AB1E, 11 bytes
Uses the method from Arnauld's JS answer
.²**U.²**X‹
Try it online!
2F.²**ˆ}¯`›
also works at the same byte count
$endgroup$
05AB1E, 11 bytes
Uses the method from Arnauld's JS answer
.²**U.²**X‹
Try it online!
2F.²**ˆ}¯`›
also works at the same byte count
edited 24 mins ago
answered 40 mins ago
EmignaEmigna
48.3k434147
48.3k434147
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meantb1=b2=b3=20
,yeah that doesn't terminate.
$endgroup$
– Emigna
34 mins ago
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
|
show 2 more comments
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meantb1=b2=b3=20
,yeah that doesn't terminate.
$endgroup$
– Emigna
34 mins ago
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
37 mins ago
1
1
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
@Anush: Seems to terminate in less than a second to me.
$endgroup$
– Emigna
36 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
you have to set all the variables to 20. See tio.run/##yy9OTMpM/f9f79Du3GK9Q6tzHzXs@v8/2shAB4xiuRBMAA
$endgroup$
– Anush
35 mins ago
$begingroup$
@Anush: Ah, you meant
b1=b2=b3=20
,yeah that doesn't terminate.$endgroup$
– Emigna
34 mins ago
$begingroup$
@Anush: Ah, you meant
b1=b2=b3=20
,yeah that doesn't terminate.$endgroup$
– Emigna
34 mins ago
1
1
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
$begingroup$
@Anush: It is fixed now. Thanks for pointing out my mistake :)
$endgroup$
– Emigna
21 mins ago
|
show 2 more comments
$begingroup$
Wolfram Language (Mathematica), 23 bytes
#2^#3Log@#>#5^#6Log@#4&
Try it online!
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
add a comment |
$begingroup$
Wolfram Language (Mathematica), 23 bytes
#2^#3Log@#>#5^#6Log@#4&
Try it online!
$endgroup$
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
add a comment |
$begingroup$
Wolfram Language (Mathematica), 23 bytes
#2^#3Log@#>#5^#6Log@#4&
Try it online!
$endgroup$
Wolfram Language (Mathematica), 23 bytes
#2^#3Log@#>#5^#6Log@#4&
Try it online!
edited 10 mins ago
answered 41 mins ago
J42161217J42161217
14.4k21354
14.4k21354
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
add a comment |
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
This doesn't terminate for a1=20, a2=20, a3=20.
$endgroup$
– Anush
38 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
$begingroup$
@Anush fixed...
$endgroup$
– J42161217
9 mins ago
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f184734%2fwhich-big-number-is-bigger%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
It would probably also benefit from normal, broadly-defined decision-problem output instead of being restricted to
1
and0
$endgroup$
– Unrelated String
43 mins ago
2
$begingroup$
Can we take the inputs in any order?
$endgroup$
– Kevin Cruijssen
42 mins ago
$begingroup$
@KevinCruijssen No. They have to be in the order given.
$endgroup$
– Anush
39 mins ago
$begingroup$
Suggested test case: where
a1,a2,a3
are equal tob1,b2,b3
, which should result in falsey.$endgroup$
– Kevin Cruijssen
26 mins ago
2
$begingroup$
@Anush Imposing a specific order of inputs it not common at all. You should specify that very clearly in the text. By default imput order and format are flexible
$endgroup$
– Luis Mendo
5 mins ago