1,684 Posted Topics

Member Avatar for jorgmen
Member Avatar for karolik
Member Avatar for BiGPrO

Yes. First, do you understand theta notation? Do you understand it well enough to tell me, using theta notation, how long this algorithm takes to run? [code] for i = 1 to n for j = 1 to i sum = sum + 1[/code] I'll assume yes. So, when adding …

Member Avatar for anticar
0
1K
Member Avatar for scuzzo

I hate dumb instructors. I would just add up how many times the very inside part executes. In the first example, the inner loop executes its inside n times each time it's run, and the inner loop gets run n times. So the inside of the inner loop gets run …

Member Avatar for laehc
0
116
Member Avatar for PunkRokPrincess

[QUOTE=sneaker;1170656]What languages depends on where on this planet you live. Look in the newspaper and see what the bigger IT company's are looking for.[/QUOTE] "IT company's"? Anyway, regarding the question of commonly used languages, the answer is something like Java, C#, C++, C, Perl, Python, .... The exact ranking depends …

Member Avatar for sneaker
0
141
Member Avatar for Ajantis

Maybe you should read what you have more slowly and carefully. If you can't understand something just because it's not laid out for you in just the comfortable manner, you need to learn how.

Member Avatar for Rashakil Fol
0
93
Member Avatar for pumba

You won't get a good answer if you can't even figure out what you want. First, you asked how to differentiate an equation (which raises the question, how do you want to represent an equation?). Then you asked how to solve a differentiable equation (which raises the question, how do …

Member Avatar for Nick Evan
0
115
Member Avatar for princecal
Member Avatar for EngRania
Member Avatar for Smitty83

You basically don't understand what's going on or how Haskell works and you need to go back to relearn some of the basics. This is going to take some time, since there's stuff that comes before do blocks, like mandatory variable naming conventions, that you should not be confused with, …

Member Avatar for Rashakil Fol
0
133
Member Avatar for nickewus24

[QUOTE=nickewus24;1165477]I don't know what they mean by encapsulating the data from the driving the car code into an object oriented design.[/QUOTE] I don't either. The question seems like B.S. to me. If they want to teach object oriented concepts they should do it with real examples and with real programs. …

Member Avatar for nickewus24
0
147
Member Avatar for sweetsasthi

Um, iPad applications can do multi-threading. You don't know the difference between threads and processes, do you.

Member Avatar for cwarn23
0
208
Member Avatar for Dasau

Do you not know how the modulus or / operators work? Please identify the source of your confusion.

Member Avatar for Rashakil Fol
0
34
Member Avatar for dhpatil1
Member Avatar for cassie_sanford
Member Avatar for Fbody
0
411
Member Avatar for ankara84

Perhaps ankara didn't know how to use a text editor for typing in C code. [QUOTE=Narue]Then again, I also know quite a few who would churn out several versions including recursive, non-recursive, dynamic recursive, and heuristic formula without breaking a sweat and then dare you to find a bug. ;)[/QUOTE] …

Member Avatar for Nick Evan
0
2K
Member Avatar for tformed

The cube root of -2 isn't a real number. So you're not going to get a real answer.

Member Avatar for NathanOliver
0
697
Member Avatar for TGeorge824

Take Introduction to mathematical proof. It will make you a better, smarter programmer. Another reason is that if you find yourself interested in graphics, it wouldn't be that hard to pick up the necessary linear algebra on your own. Linear algebra is not the hard part of graphics programming. Edits: …

Member Avatar for lycry
0
191
Member Avatar for b1izzard

[QUOTE=ravi89;1108140]Hi I am ravi, this is my first personal interview in my career. Please comment me over my answers and my way of answering:)[/quote] No, I'm going to make some general commentary about society and seem really obnoxious but that's just the effect of stupidity rubbing off on me. [quote]Q: …

Member Avatar for happygeek
0
301
Member Avatar for vimals

This should be a thread, not a code snippet. What Scheme interpreter are you running?

Member Avatar for vimals
0
62
Member Avatar for BevoX

[QUOTE=BevoX;809377]Thanks, but just to recap, my question is: Is it possible to create a data type which is not bounded to predefined C++ data types. I can create my own classes. but that would still rely on them. ( int, char, double whatever.. ). E.g.: what If I want to …

Member Avatar for maf5693
0
4K
Member Avatar for AralX

[quote]I was planning on taking a program regarding haskell, but I don't know if its the good thing.. I mean... some said its like out of style ...[/quote] That's mistaken. Haskell is more "in style" than it has ever been. Edit: I'm not saying it's [i]popular[/i], but it's more popular …

Member Avatar for kudresov
0
132
Member Avatar for Brian.oco

The entertainment channel known as CNBC is the last place you should look for perspectives on the financial situation.

Member Avatar for amandkumar
-1
273
Member Avatar for perumula

First, start working on it. Then, after you've shown some progress, you'll have an easier time convincing somebody to help you.

Member Avatar for perumula
0
136
Member Avatar for Siberian

Why don't you pay for it? Here's an idea: shovel snow for a few hours. Or, if you live in a third world country, shovel mud for a few months.

Member Avatar for Ancient Dragon
-6
256
Member Avatar for cwarn23

If a + b = 23 and a^b = 16, well, you know that a = 23 - b, which means (23 - b) ^ b = 16. So here's what you should do. Write (23 - b) ^ b - 16 = 0, and then use Newton's method to …

Member Avatar for mrnutty
0
137
Member Avatar for acidburns
Member Avatar for cissee

[I]<<snip>>[/I] Look up the meanings of the terms and then figure out what's different about them.

Member Avatar for Salem
0
81
Member Avatar for sifounas

The question isn't really between Java and C#. It's between Java, Scala, C#, F#, and some others. The answer is Scala, which compiles to the JVM. From a purely Java vs. C# language perspective, you would generally prefer to use C# because it has anonymous functions, using blocks, a reasonable …

Member Avatar for Salem
0
155
Member Avatar for cissee
Member Avatar for junezy4

This is a completely incomprehensible question that makes no sense and you are probably wanting something very bad and insecure.

Member Avatar for Rashakil Fol
0
121
Member Avatar for ayan2587

I recommend translating this problem. How many integral solutions exist for y1 + y2 + ... + y100 = 5050, where each yi > -1? You can see that these map to solutions to your equation by letting xi = yi - (i - 1). The resulting equation is a …

Member Avatar for Rashakil Fol
-1
115
Member Avatar for D137Pi

In some sense, the problem is impossible. Simply indexing an array takes O(log(n)) time. The reason is that the number of bits needed to describe the index is log_2(n). Of course, processors operate with bitstrings in chunks of 32 or 64 at a time, so we like to pretend that …

Member Avatar for Rashakil Fol
0
151
Member Avatar for sneekula
Member Avatar for largedimples
Member Avatar for BestJewSinceJC
-1
127
Member Avatar for ayeshawzd

A Taylor series isn't really a good way to compute this function unless you're looking for asymptotic accuracy around a particular point, rather than general accuracy along the whole thing. Also, it's a good idea to start by folding the number down to the interval [0,pi]. But suppose we did …

Member Avatar for ayeshawzd
0
484
Member Avatar for ayan2587

Just output '1' and then copy the contents of the file but don't include any spaces -- the integer you output will be the concatenation of the integers in the input and can't equal any of them.

Member Avatar for Rashakil Fol
0
252
Member Avatar for Morexod

[QUOTE=Morexod;1097097]I'd like to get a degree in computer graphics (something like physically-based animation and rendering) in a major American university.[/quote] My ex-roommate is getting a PhD in this subject. It sounds like you want to get a masters degree. I don't personally know what grad schools are good for computer …

Member Avatar for Rashakil Fol
0
121
Member Avatar for renjubenoy
Member Avatar for renjubenoy
-3
126
Member Avatar for snarb
Member Avatar for carlco9020

[QUOTE=carlco9020]I have a small problem. I want to make a basic page with an image in the upper right hand corner with the text wrapping around it. I cannot seem to figure this out. I am not a newbie to web design so I feel like a dunce..... :sad:[/QUOTE] You …

Member Avatar for annie707
0
2K
Member Avatar for MosaicFuneral

The US Congress has already tried this with stuff like the CDA and COPA and both times got shot down by the Supreme Court.

Member Avatar for Rashakil Fol
0
123
Member Avatar for Murderous Mouse
Member Avatar for ZER09

[QUOTE=ZER09;1065634]I mean the direct code.[/QUOTE] google "openjdk hashmap code" Here's your code. [url]http://www.docjar.com/html/api/java/util/HashMap.java.html[/url]

Member Avatar for ZER09
0
92
Member Avatar for mahela007

An API is a list of function declarations, or something in that spirit.

Member Avatar for mackone
0
122
Member Avatar for klactose

The first step to understand is that (loop for item in foo collecting bar) will ... Heck, install SBCL yourself and run the code and do experiments that figure it out.

Member Avatar for Rashakil Fol
0
340
Member Avatar for rkulp

Take Japanese and then you can get really freaking tired of all the otakus in your class.

Member Avatar for Rashakil Fol
0
569
Member Avatar for aq5

Just think: How could your problem be made easier? If you had a built in utility that does [something useful], you'd be able to write this program easily, right? And you'd surely have an easier time it had a member function that [gives some useful information about the ____]. You …

Member Avatar for Murtan
0
459
Member Avatar for ronny22

[QUOTE=ronny22;1058704] my question is what does n - 1 mean (n minus 1) [/QUOTE] That's the same kind of minus as the minus key on your calculator. Just put n - 1 into Mr. Calculator and you'll calculate running time. [quote] what does n/2 mean (n over 2 or n …

Member Avatar for ronny22
-1
169
Member Avatar for xcorpionxting

Objects in C++ can't change their type. You can have a variable of some pointer-to-animal type and then assign a new pointer-to-animal to that variable though.

Member Avatar for xcorpionxting
0
204

The End.