1,684 Posted Topics

Member Avatar for jenymaru08

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 …

Member Avatar for ndeniche
1
131
Member Avatar for shamma
Member Avatar for shamma

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?

Member Avatar for Rashakil Fol
0
60
Member Avatar for wilj

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.

Member Avatar for joshSCH
0
89
Member Avatar for shamma
Member Avatar for wilj

Why is that page named ReversePolishNotation.htm? That's not reverse Polish notation; it's Polish notation.

Member Avatar for wilj
0
87
Member Avatar for jamello
Member Avatar for jamello
1
280
Member Avatar for jhdobbins

[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.)

Member Avatar for ndeniche
0
310
Member Avatar for dcc
Member Avatar for mcook228
Member Avatar for John A
Member Avatar for ~s.o.s~
0
615
Member Avatar for Direwolf007

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) …

Member Avatar for Direwolf007
0
181
Member Avatar for iamthwee

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) …

Member Avatar for John A
0
2K
Member Avatar for Tauren

Software Engineering is the practice of carefully making software that works correctly. Programming is the practice of making software.

Member Avatar for Rashakil Fol
0
90
Member Avatar for Rashakil Fol

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.

0
109
Member Avatar for shmay

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 …

Member Avatar for Rashakil Fol
0
177
Member Avatar for Rashakil Fol

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.

Member Avatar for Mike555
0
384
Member Avatar for Duki

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. …

Member Avatar for Rashakil Fol
1
13K
Member Avatar for captainhair

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 …

Member Avatar for Rashakil Fol
0
105
Member Avatar for The Dude

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 …

Member Avatar for J_M44053
0
407
Member Avatar for kjpwa

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 …

Member Avatar for ANUJ SHROTRIYA
0
827
Member Avatar for darrglud

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 …

Member Avatar for John A
0
282
Member Avatar for Duki

[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 …

Member Avatar for Chaky
0
111
Member Avatar for Sabi_146
Member Avatar for Rashakil Fol
0
49
Member Avatar for algo_man

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 …

Member Avatar for iamthwee
0
75
Member Avatar for dkdeleon68

Depending on your definition of "levels of nesting", you've got 0, 1, 2, 4, 5, or 8.

Member Avatar for Rashakil Fol
0
129
Member Avatar for a.baki

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.

Member Avatar for Rashakil Fol
0
76
Member Avatar for a.baki

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.

Member Avatar for Rashakil Fol
0
71
Member Avatar for kloony
Member Avatar for XpatienceX
Member Avatar for Steven clarinet
Member Avatar for Narue

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].

Member Avatar for Serunson
0
1K
Member Avatar for olams

Then you should learn C++. Taking from you the opportunity to solve this problem yourself won't solve this long-term problem.

Member Avatar for iamthwee
0
118
Member Avatar for Infarction
Member Avatar for Killswitch

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.

Member Avatar for MidiMagic
0
439
Member Avatar for algo_man

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 …

Member Avatar for Infarction
0
134
Member Avatar for mikki2

Yes, let's lecture him on his daring choice of university while we twiddled our thumbs in our native-language universities.

Member Avatar for happygeek
0
96
Member Avatar for BiGPrO

[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 …

Member Avatar for iamthwee
0
157
Member Avatar for Mushy-pea
Member Avatar for Rashakil Fol
0
86
Member Avatar for Brent.tc
Member Avatar for covertx

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.

Member Avatar for linux
0
125
Member Avatar for Debadipta

[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.

Member Avatar for Debadipta
0
111
Member Avatar for The Dude
Member Avatar for RwCC
0
193
Member Avatar for bobby77

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.

Member Avatar for Rashakil Fol
0
73
Member Avatar for humbug
Member Avatar for Mushy-pea

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.

Member Avatar for Rashakil Fol
0
66
Member Avatar for Mrclean8586

This is not the more appropriate board; you should move it back to the CompSci forum.

Member Avatar for Rashakil Fol
0
188
Member Avatar for laileeto

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.

Member Avatar for kramero
0
124
Member Avatar for KevinADC
Member Avatar for sosina abraha

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. …

Member Avatar for Infarction
0
271

The End.