1,684 Posted Topics
Re: Try doing some thinking. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
![]() | Re: 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. |
Re: 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 … | |
Re: 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, … | |
Re: [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. … | |
Re: Um, iPad applications can do multi-threading. You don't know the difference between threads and processes, do you. | |
Re: Do you not know how the modulus or / operators work? Please identify the source of your confusion. | |
Re: That's not enough information to solve your problem. | |
Re: You can surely run the program yourself and see whether the output is right. | |
Re: 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] … | |
Re: The cube root of -2 isn't a real number. So you're not going to get a real answer. | |
Re: 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: … | |
![]() | Re: [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: … |
Re: This should be a thread, not a code snippet. What Scheme interpreter are you running? | |
Re: [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 … | |
Re: [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 … | |
Re: The entertainment channel known as CNBC is the last place you should look for perspectives on the financial situation. | |
Re: First, start working on it. Then, after you've shown some progress, you'll have an easier time convincing somebody to help you. | |
Re: 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. | |
Re: 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 … | |
Re: [I]<<snip>>[/I] Look up the meanings of the terms and then figure out what's different about them. | |
Re: 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 … | |
Re: This is a completely incomprehensible question that makes no sense and you are probably wanting something very bad and insecure. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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 … | |
Re: Implement a bunch of old-school pencil and paper ciphers like Vigenere. | |
Re: You can use any general purpose language. Good luck. | |
Re: [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 … | |
Re: The US Congress has already tried this with stuff like the CDA and COPA and both times got shot down by the Supreme Court. | |
Re: [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] | |
Re: An API is a list of function declarations, or something in that spirit. | |
Re: 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. | |
Re: Take Japanese and then you can get really freaking tired of all the otakus in your class. | |
Re: 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 … | |
Re: [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 … | |
Re: 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. |
The End.