Antarctica sits on every line of longitude, due to the South Pole being situated near the middle of the continent. Theoretically Antarctica would be located in all time zones; however, areas south of the Antarctic Circle experience extreme day-night cycles near the times of the June and December solstices, making it difficult to determine which time zone would be appropriate. For practical purposes time zones are usually based on territorial claims; however, many stations use the time of the country they are owned by or the time zone of their supply base (e.g. McMurdo Station and Amundsen–Scott...
CMC: For all words that are longer than 2 characters, and only the first 2 characters are capitalized, fix itso that only the first character capitalized. Except for IDs.
Robbers post
A riffle shuffle is a way of shuffling cards where the deck is split into 2 roughly equal sections and the sections are riffled into each other in small groups. This is how to riffle shuffle a string:
Split the string into equal sections.
Reverse the string, and starting from the ...
Cops post
A riffle shuffle is a way of shuffling cards where the deck is split into 2 roughly equal sections and the sections are riffled into each other in small groups. This is how to riffle shuffle a string:
Split the string into equal sections.
Reverse the string, and starting from the sta...
which programming language is easier to make this type of application!
is possible with java?
I just have a idea!
i know core java,php but not in advance! but i want to do something like serial app!
please help me guys!
400 reputation for an answer to Paint Starry Night that takes top place without built-in compression
The bounty will be awarded to the first answer that takes first place (i.e. lowest score) without using an off-the-shelf compression routine. I'll award it even if it's immediately beaten by anot...
We Had A Question Once Which Only Failed On Sundays code-golf error-message date
Inspired by We had a unit test once which only failed on Sundays, write a program or function that does nothing but throw an error on Sunday, and exit gracefully on any other day.
Rules:
No input, output through...
So apparently Valve will VAC anyone in Linux with a username starting with "catbot" (a TF2 server flooding bot name or something is catbot) without any other checks. Catbots just changed their name but VAC still bans anyone with the name catbot. ¯\_(ツ)_/¯
@user202729 So, "Convex Hull of a set of 2D point" was asking the submissions to return the coordinates of the vertices of the smallest convex set that contains the given points. "Maximum Area of a Polygon with Vertices of a Polygon" asked us to find the area of Polygon with its vertices equal to the given set of points. The differences are quite small IMO
Although I agree that computing the area might be a significant enough difference, while obtaining the Polygon and the Convex Hull can be done similarly (I think).
If other users would reopen, I wouldn't hammer, because there are some differences. Not sure, but the challenges are closely related
Rules
Given a list of integer coordinates, l, with a length of at least 4, and an integer n such that n is smaller than the length of l (but at least 3), return the largest area of an n-gon (n-sided polygon) that has all the coordinates of its n vertices in the list l. No three vertices should b...
@DJMcMayhem Not even counting personal issues, things such as the terror increase, racism increase, sexual assault increase and the presidential disaster (just my opinion on him), it's been a pretty bad year, considering.
@user202729 no, that's not what I mean at all - I think we've missed each others' meaning at some point above, I'm not sure where. Regarding writing a new Python library for a challenge, no, that would not be allowed on any PPCG challenge as far as I know. (If it doesn't come under one of the standard loopholes it should do.) — Nathaniel11 mins ago
@cairdcoinheringaahing I think most of those (other than the president) are simply hot topics. Sexual assault hasn't increased, just the awareness of it (which is a good thing). I'm skeptical that terrorism has increased without numbers, and racism is simply something that can't be quantified. Yeah, there have been lots of high-profile racially charged protests, but that doesn't mean there is more racism in the world then there was before this year.
But, I suppose that's opening a can of worms, and totally off-topic for this room.
@Downgoat I read that before scrolling down and seeing you were talking about python, and for a second my reaction was How the heck is that any more on topic?!?!
@Adám starbait is something each person may perceive differently...
...but starbait is generally of the form "star this so I get a nice hat please please please..." etc.
messages you know might get stars aren't necessarily starbait, for example talking about stars will inevitably get you a few stars, that doesn't mean you can't talk about stars
if you see star abuse, your plea to stop it will get you a few stars too (if you're quick enough, that is)
Also, I can see potential of unclear specification here... for example, what if Pythagorean identity can be deduced from your identity list? — user2027291 hour ago
Do you think so?
So far I can prove (sin²(2a) + cos²(2a)) = (sin²(a) + cos²(a)) ²
@Adám no, you can't always do that, flags are seen by the whole network, whereas the rules here are way stricter than other chatrooms, for example The Sphinx's Lair (Puzzling.SE's general discussion)
(although star abuse is mostly observed here IMHO)
@Adám when the flag is invalidated, obviously, more stars can be added, and flags would then just be annoying anymore and such...I believe that's an issue of chat itself
@Adám for example, during a discussion, star abuse may suddenly rise, and messages belonging in a valid, on-topic discussion be serially starred for no reason
@EriktheOutgolfer Maybe you misunderstood (i.e. I didn't express myself clearly). I never flag a message because it gets starred. I only flag messages that break rules, e.g. ask for stars or votes.
@Doorknob I was saw face's "Hello, World!" program and didn't understand how m worked. What is the significance of the second argument, why does it have to be *?
It is well known that odd primes will appear in Pascal's triangle exactly twice. However, not all numbers that appear exactly twice in Pascal's triangle are prime. We'll call these numbers Pascal primes.
Pascal primes are composite numbers that appear exactly twice in Pascal's triangle. The fir...
Permute Dimensions
code-golfarray-manipulation
Given a n-dimensional array of integers and a permutation of the first n natural numbers, permute the array dimensions accordingly.
Details
The permutation is given as a list of integers, e.g. [1,3,2] means 1 gets mapped to 3, 2 gets mapped to 3 ...
@Cowsquack m stands for malloc, so mab sets a to point to a malloc'd area of memory of size b. The second argument is * in the Hello World example because it's the only integer variable that's been set at that point.
It's the size of the number mode, which is described further up in the docs. (So basically if the number mode is int, mxn will allocate space for nints.)
I am reading your clock answer, and see that you've used @. The docs tell me that it is replaced with the null byte, but I don't still see its significance
> Greatest distance between any two points within U.S. Territory: 9,514 miles (15,311 km) from Point Udall, Guam to Point Udall, St. Croix, U.S. Virgin Islands (from Wikipedia)
In Haskell, the function putStr has type String -> IO (). Thus it takes a String, prints it, and returns something (IO ()). Similarly, most Haskell functions that deal with IO will return an IO Something after performing an action. Not sure if this helps to answer your question, but you can't really do anything with the IO () anyway
I really like times that follow certain patterns. In particular, I like times where all the numbers are the same, or all of the numbers increase sequentially. Further, I viscerally hate when people put letters in my times, so all of that AM/PM nonsense is dead to me. Thus, my favorite times are:
...
The conditions are set forth in the second paragraph, below the code block listing the six times
"... either (A) tells me both (i) how many minutes it's been since my last favorite time as well as (ii) how many minutes from now my next favorite time will occur, if it is not now one of my favorite times; or (B) will supply a single 'signal value' if it is now one of my favorite times."
if it is not now one of my favorite times specifies when (A) applies
if it is now one of my favorite times specifies when (B) applies
Should I re-order that paragraph... maybe add emphasis?
@JonathanAllan I'm hesitant to rework it that completely, at this point. Hopefully any lingering confusion will be resolved by the sample inputs/outputs table?
I think I see the difference in semantics in the sentence.
I was thinking of what the program does on any given execution; IIUYC you're thinking of it as, 'what is the totality of the feature set of the program'.
We really need more users, more challenge writers. The activity on PPCG has dropped quite a bit ever since I joined, and we really want more challenges :)