@Downgoat Then you must contribute something to the organization. Then I'll put you on a trial period where you have admin access to the repos that are like the ones you contributed to and read access to all other repos.
@zyabin101 An IPv4 is nothing but a 32-bit integer. There are several ways to display it. Four digits in decimal notation happens to be quite readable, but it isn't the only one.
Anyone want to come into Beep Boop Maggot and help me teach chatgoat how to be nice (by being very nice to him). He has no sense of context so just go with what he says
The plus-minus sequence
The plus-minus sequence is one that starts with two seeds, a(0) and b(0). Each iteration of this sequence is the addition and subtraction of the previous two members of the sequence. That is, a(N) = a(N-1) + b(N-1) and b(N) = a(N-1) - b(N-1).
Objective Produce the plus-m...
So, as a newbie, any "historically amazing answers" page of some sorts? (Like the meme page)? As a sort of, huh, not sure. Catch up? Question probably doesn't make sense
@Zgarb It is a really noisy format for parsing code, and there's no easy way to create it apart from trial & error. A better choice would be CJSSHS (a RegEx state machine parser).
Write a full program with a source code of 256 bytes or less that looks at an image of a flag and guesses what country that flag is from. A zip file containing the 196 different flags in the challenge can be downloaded from here. Source: [Flagpedia]
Your program will take no input. The flag imag...
Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value:
Something like:
doc.findElementByAttribute("myAttribute", "aValue");
C# mini-challenge: Without running it, determine the value of (((true)?true:true)?(true)?true:true:(true)?true:true)?((true)?true:true)?(true)?false:true:(true)?true:true:((true)?true:true)?(true)?true:true:(true)?true:true.
@flawr Well, in the US there's the Democratic Party and the Republican Party, and no one else matters because the two-party system is so ingrained into how the US does things that no one else gets votes.
Sometimes I imagine a world in which the people who voted for Nader in the Bush/Gore election voted for Gore instead. Then I get sad because I remember that Bush won. ;-;
This is a list of political parties in the United States, both past and present.
== Parties with federal representation ==
Current United States Congressional seats
Congressional leadership of the House of Representatives
Congressional leadership of the Senate
The Vice President of the United States has the additional duty of President of the Senate. It is the Vice President's duty as President of the Senate to cast a tie-breaking vote in the event that "they be equally divided"—an equal number of Senators voting both for and against a motion.
== Parties with state representation ==
== Major... ==
@CᴏɴᴏʀO'Bʀɪᴇɴ Agreed, but I'll still support her if she gets the nomination.
@AlexA. That makes sense. In the case it's between Trump and Hilary, I'd learn towards Trump merely because I know what bad already looks like from the Clinton's. That, or I'd take a ride with someone going to Canada :P
hey, a question. Lets say you have 2 dimensional grid like this: 3 3 2 1 2 2 7 0 3 4 1 1 Each numbers represents the number of citizens in certain area. We have to divide this region into smaller sections, so that each section is similar in number of votes. How would you begin to program something like that?
So you have to get the best solution (where the difference between section with the lowest population and the section with the highest population is the smallest number possible), the section consists of at least 1 cell
given a sorted list of integers I, a focal point F, and a group size N, find the smallest possible integer range that includes F and N-1 other integers from I
I wouldn't call what you are trying to do "gerrymandering" though.
Gerrymandering is what happens when, during the process of redistricting, politicians choose the dividing lines as to give themselves an advantage and hurt their opponent.
Brute force would be a recursive algorithm that, given a partially-colored map, picks the next uncolored square and attempts to give it a valid color assignment. For each valid color assignment, it recurses on the new map. The option that gives the best result is the one that is returned.
@flawr There are even ES4 runtimes (ES4 makes JS a full-blown Object-Oriented language instead of just prototype-based). To bad it was dropped by ECMA and never implemented in any browser or mainstream engine.
class Person(String: name, Int: age) {
main {
self name name
self age Age:(age)
}
}
ExamplePerson := Person:("Bob", 39)
print ExamplePerson.age #prints 39