1,684 Posted Topics
Re: This is certainly a non-trivial problem for somebody with your amount of experience. Here's one tool I recommend using in the function, to make your time easier. Make an array or a vector which contains the numbers in string form, from "one" to "nineteen". I'm not sure what experience you … | |
Re: There's no way to answer that question with guaranteed accuracy. Also, write 2 to the n as 2^n, definitely not as 2n. What do you think big O notation means? | |
Re: In a tree, every node has an edge 'pointing' to it, except for one root node. You're trying to use Prim's Algorithm, not some "prism" algorithm. Read what Prim's Algorithm is, and follow the instructions the algorithm gives you. | |
Re: No. Gently caress you. Do your own homework. | |
Re: Why is that page named ReversePolishNotation.htm? That's not reverse Polish notation; it's Polish notation. | |
Re: [url]http://www.cs.rpi.edu/~hollingd/opsys/[/url] See "Chapter 2: Processes and Threads" for lecture notes with sample code, and see "Writing a Shell" (which mentions pipes and reading and writing), with sample code. (Using Unix of course.) | |
Re: You can assign Persons, but you're trying to assign a pointer to a person. | |
| |
Re: What about something like this: Make buckets for the ranges 0..n-1, n..2n-1, ..., n^2-n..n^2-1. Then, first go through the array and fill the buckets with counts of how many elements fall in the buckets (and maybe an array that you fill linearly alongside the count). Then _smartly_ (that's the key) … | |
![]() | Re: I say it's their loss if they don't post using code tags, so who cares? (Of course, it's Dani's loss, too, in that case, so I guess Dani would.) I personally care more about the large margins given when code tags are used. </attempt type="derail conversation"> [code]((call/cc call/cc) (lambda (f) … |
Re: Software Engineering is the practice of carefully making software that works correctly. Programming is the practice of making software. | |
I'm getting some javascript that's causing slowdowns. It's stuck in an infinite loop or something. This is on Konqueror. Never happened before. | |
Re: I don't think that's what the question's asking, Lerner. It doesn't say that. shmay, if you need to generate a number in the range [0, 37) with five random decimal digits after the decimal point, start by generating an integer in the range [0, 3700000], and then divide it by … | |
The purpose of this posting game is the following: Come up with an explanation of why posting games suck. The person with the most replies to this posting game thread is the loser. I'll go first. Because they're posting games. | |
Re: It's a type. A datatype. Like int or long or size_t or unsigned char. You know how in C, size_t is an unsigned integer large enough to represent any array size possible? The C++ std::string class provides string::size_type as an integer datatype large enough to represent any possible string size. … | |
Re: You really could stand to be more specific. First of all, it's not like anybody's going to just give you the answer. Also, you need to improve your ability to think clearly. You say "ignoring punctuation" as if it's clear what you mean. You can't write clear programs if you … | |
Re: Sociopath My test tracked 4 variables. How you compared to other people your age and gender: You scored higher than 99% on Rationality You scored higher than 99% on Extroversion (but I am more introverted than extroverted...) You scored higher than 99% on Brutality You scored higher than 99% on … | |
Re: You could create a lazy list datatype that only produces values when you request them -- and whose values it produces are the natural numbers. Then run the sieve of Eratosthenes on it. Then peel off the first 6 elements of the list. Or you could use a vector that … | |
Re: There are some people there who respond to a lot of posts without really knowing or understanding anything. There are a lot of people who do that here. That's okay; just pay attention whenever Bubba or Prelude or Salem or Dave Sinkula or Mad_Guy say anything. And machines like quzah … | |
Re: [QUOTE=jwenting;340272]You got your history wrong here... A Megabyte is 1024 bytes. It wasn't until marketing departments started corrupting the term to mean 1000 bytes that some people came up with the silly idea of inventing the term "mebibyte" for 1024 bytes.[/QUOTE] Liar! A megabyte is 1048576 bytes. A gigabyte is … | |
Re: Is it fair to keep asking people to do your homework for you? | |
Re: Think about the only operations you can perform between two stacks if you have no extra memory, and you're sitting on top of the answer. And if you think about it, a pair of stacks is quite similar in concept to a pointer in the middle of an array. One … ![]() | |
Re: Depending on your definition of "levels of nesting", you've got 0, 1, 2, 4, 5, or 8. | |
Re: I think you can see the difference right there for yourself. This has nothing to do with optimization, unless you enable the -fretarded flag on your compiler. | |
Re: Write one with three states: one for where it hasn't seen any vowels yet, one for where it's seen front vowels, and one for where it's seen back vowels. And a failure state if it has to be a deterministic FA. I'll leave the edges to you. | |
Re: Nobody can help you if they can't see the source code. | |
Re: My keyboard is a buckling spring keyboard: [url]http://us.st11.yimg.com/us.st.yimg.com/I/pckeyboards_1922_6667[/url] My mouse is a [url=http://www.logitech.com/index.cfm/products/details/US/EN,CRID=2142,CONTENTID=10121]Logitech MX 518[/url]. | |
Re: Then you should learn C++. Taking from you the opportunity to solve this problem yourself won't solve this long-term problem. ![]() | |
Re: Do you even know what "downloading" is? (Sorry for being abrasive.) It is impossible for a user's computer to play the music that is on your server without having downloaded it first. What you want is impossible. | |
Re: First you need to describe what the '/' operator does: integer division or floating point division? Then you need to count the total number of fundamental operations that each algorithm executes, in terms of the variables at hand. Unless you've never found the running time of an algorithm before, you … | |
Re: Yes, let's lecture him on his daring choice of university while we twiddled our thumbs in our native-language universities. | |
Re: [QUOTE=Ancient Dragon;287375]In USA that would be a question most 8th graders could answer. You will be pretty lost in programming if you do not have at least that level of mathametical skills. You should probably take a remedial math course to bone up on algrbra and trigonometry. and there are … ![]() | |
Re: Um, yes. You might want to check out a variant I made that uses bits instead of bytes: [url]http://www.rpi.edu/~hughes/boof/[/url] [QUOTE=iamthwee]It's pointless, mere fun really.[/QUOTE] So is living. | |
Re: [QUOTE=Debadipta]4.What do you mean by 'text-based, console programs'?[/QUOTE] Programs that operate over the standard input and standard output streams, that possibly expect parameters via command line arguments. [QUOTE=Debadipta]5.Why is it necessary to enclose every method in a class or interface in JAVA?[/QUOTE] Because Java is a bondage and discipline language. | |
Re: Whine whine whine. What is with these people and their sense of entitlement? | |
Re: Urgent? How many people will die if we don't answer this question in time? And why are you asking about the choice of "frequency and wavelength"? It's not like you're making two choices. Why don't you try thinking about that question and coming up with an answer on your own. | |
Re: Hi all. This question has been answered in IRC. If you came to this thread from a search engine, see [url]http://www.haskell.org/ghc/docs/latest/html/users_guide/separate-compilation.html[/url] for an explanation. | |
Re: This is not the more appropriate board; you should move it back to the CompSci forum. | |
Re: Just do the prodgect like eny ol foo wit that biz ness o urs so like there wit dat relational db and implement yo own cuz abt pmt fbi ada fcc cdc internets r 4 pone :( :). Np enjooooooooooooooy lyf. | |
Re: Lisp certainly is object oriented, if that's what you want. With Lisp's macros and lexical scoping, you can do [i]anything[/i]. Common Lisp was the first ANSI-standardized object oriented language, ever. Common Lisp is not really a 'functional' programming language, it's a language that lets you program the way you want. … |
The End.