Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

deathtaker26

Members
  • Posts

    1594
  • Joined

  • Last visited

    Never

Everything posted by deathtaker26

  1. I'm designing a forum for my Girl-Friend. I just finished the mockup and I actually impressed my self. What do you guys think? Disclaimer: The banner is a modified League of Legends image I found on Google. >! ![](http://i.imgur.com/Mz5dFMP.png)
  2. > ``` > > class Program > { > static void Main(string[] args) > { > List numbers = new List(); > Console.WriteLine("Input Numbers:"); > bool reading = true; > while(reading) > { > var n = Console.ReadLine(); > if (int.Parse(n) == 42) > reading = !reading; > else > numbers.Add(n); > } > > Console.WriteLine("Output:"); > foreach (string n in numbers) > Console.WriteLine(n); > } > } > ``` > First problem solved in approximately 3 minutes. Far less than 20 lines. > > > > As for the point of this topic. Programming, in every sense of what it entails, is simply problem solving; you write algorithms that solve problems and that produce a desirable result. As stated, the problems is fairly easy to actually solve. I had no problem doing it. My problems were understanding what I was supposed to do.
  3. > Say that again. I mean, can you please rephrase that? I mean, I have a learning disability that I don't really understand details about. But when I read something, half the time I don't remember what I read. I can read an entire book and probably only remember 50% of what I read in it. Don't get me wrong, I love reading, In fact I'm a very fluent and fast reader. But when it comes to the comprehension, I usually don't take in what I read. In some cases I have to read a book two or sometimes 3 times to actually know the story. Anyways, for the comp on saturday, I have a friend of mine who has perfect reading comp scores on his placement exams helping me study. I'm hoping if maybe I get a week of studies in I'll preform better.
  4. > That's my point. Most of these are extremely simple. I mean, it shouldn't take more than a minute or two to read and fully understand the problem. Well Gee wiz John, WHY DON'T YOU JUST SUCCEED AT EVERYTHING YOU DO?! Lol, in all seriousness I have a serious reading comprehension issue. I'm not good at reading and understanding what I read. Or even remembering what I read.
  5. > I know for my own pics I had to go to "greater lengths", there may have been some slippery paths to darkness involved. Uhuh, I'm doing a fund raiser to meet up with my Girl-Friend. HA NO FILTER!
  6. that was the point. We had 1 hour to do them. Its not hard to code. Understanding the problem was the point if you read the post.
  7. Would've been quadruple if you didn't break the chain xD I figure if it's a valiant educational post that isn't for spam, it's okay to break up parts of the post into separate replies. The multiposting rule applies as a spam prevention.
  8. Finally, the last question. Issue with the problem: This problem is VERY dragged out and takes up too much time to develop. The reason I chose to do it is because the information is more up front and it gives you more variables that are easier to understand rather than dragging around more useless information. MOST of the information is relative but not all. Because it was easiest to comprehend, I chose to do it thinking it would be easier to code. The Problem: Nikhil has designed the following game. The game is played in a set of rooms in a dungeon arranged in an M x N rectangular grid. In one of the rooms the evil wazir has imprisoned the princess. The noble prince is on the way to rescue the princess. The prince starts in the room at the top left corner of the grid, which is labelled (1,1). Each room contains some guards. It takes a certain amount of time before the prince can kill all the guards in teh room he is in. The time taken to kill the guards varies from room to room. Once he has killed all the guards in a room, he can move on to any one if its neighbors by going left, right, up or down, provided, of course, that there is a neighboring room in the corresponding direction. The wazir, knowing the prince is on his way, has set a time bomb that will kill the princess after T seconds. You will be given the position of the princess, the time left for the bomb to go off and the time it takes for the prince to kill the guards in each of the rooms in the dungeon. Your task is to determine if it is possible for the prince to reach the princes and save her by defusing the bomb before T seconds expire. For example, Suppose the dungeon is describe by the following grid of numbers. ``` 2 3 2 2 5 1 5 3 1 3 1 1 ``` The number at position (i, j) indicates the time taken for the prince to overpower the guards in room (i, j) suppose the princess is in the room at position (4, 2). if T = 10\. there is no way the prince can reach the princess in time. However, if T = 15 the prince can reach the princess with 4 seconds to spare, as follows. Starting from (1, 1) he moves right to (1,2) and then to (1,3), comes down all the way to 4, 3 and then moves to 4, 2) this takes 11 seconds. (note he must also overpower the guard in the room where the princess is incarcerated). you can check that he cannot reach the princess with more than 4 seconds to spare by any route. Input: The first line contains two integers, M and N indicating the number of rows and columns in the rectangular dungeon. Lines 2,3, ā€¦ , M+1 contain N positive integers. The Jth integer on line i+1 is te time taken to over power the guards at room (i,j). The last line in the input, line M+2 contains 3 integers a, b and T, where (a,b) is the position of the cell where the princess is held and T is the amount of time before the bomb goes off. Output If it is not possible for the prince to save the princess then print a single line with the answer "NO" otherwise print two lines. The first line should say Yes. The seconde line should contain a single integer indicating the maximum possible time to spare when the pince rescues the princess. Constraints: You may assume that 1
  9. The problem I made my mistake on in skipping Reason it was hard: Too much extra information irrelative to how basic it was. ( The input information is what really through me off and made me skip the question) The Input was asking some crazy equation that really didn't apply to what was going through my head. It was generally the same as the first, could've been done with about 20 lines of code or less. Pooja would like to withdraw x $US from an ATM. The cash machine will only accept the transaction if x is a multiple of 5, and pooja's account balance has enough cash to perform the withdrawal transaction (including banking charges). Calculate Pooja's account balance after an attempted transaction Input Positive integer 0 < x
  10. The easiest problem on here was the first. I understood this one though it did take me 2 to 3 minutes to manipulate the information given to find out what they were actually asking. Note we got to choose our language, everyone chose C# as it's the easiest to convert input data between strings and integers and manipulate input string data into arrays. The reason this question took so long to understand: There is a lot of extra information being given here that is more or less irrelative to the problem being given. Problem 1: Your program is to use the brute-force approach in order to find "the answer to life, the universe, and everything". More preciselyā€¦ rewrite small numbers from input to output. stop processing input after reading the number 42 all numbers are integers of one or two digits. Example Input: 1 2 88 42 99 Output: 1 2 88 **Explanation** If it hadn't been for the examples given I wouldn't have actually understood what this was asking. Before reading the explanation, go ahead and see if you can come to an understanding what it's asking you on your own. Time yourself to see how long it takes you to understand **Answer** The actually code and answer to this problem was EXTREMELY basic. It can be done in about 20 lines of code tops. The question is asking that a user creates a console application that you enter numbers in. You enter a list of numbers and at the end of the problem print the same exact list of numbers. if the number 42 was in the problem. remove 42 and every number typed in after that. So if I type in the number 1, 2, 3, 42, 55, and 100 the output would return 1, 2, 3.
  11. I'll upload 3 of this comp's problems, I got to keep the sheet for practice and I'll upload some of last year's problems as well just give me a second
  12. Today, I learned a very valuable lesson towards my career. I went into a college programming competition. In this competition we were given 6 word problems and must solve them in am efficient manner. Your program has to work. Code is not judged. He who finishes the most working solutions by the end of the time period wins. If there's a tie, the time completed will settle it. Todays competition was my first, and though my programming was at a much higher level then the competitiors, I came in third, I lost to two more or less novice developers. My problem was in actually understanding the problem. Reading comprehension. I did not understand the problem and skipped to a much higher difficulty problem that took too much time to complete. This mistake threw the ability to finish the last problem in a reasonable set of time giving those who did the easiest problem first a higher advantage. Though I was literally a line away from finishing, I came in third due to a lack of understanding. Problem comprehension takes a bigger role in software engineering than you think.
  13. So, no buyers? I got these in movie poster sizes.
  14. > Drug addition? That some kind of like drug mathematician? At least it's not pictures of my hoo haw. Lel.
  15. Problem? I think this is more of a solution.
  16. This started as a joke, but now I'm serious about it.
  17. Alright guys, I'm selling autographed pictures of myself. Starting at $3.99 USD an image (+Shipping depending on your area). We're talking like nice printouts and everything. I might be able to do posters and stuff too. PM me if interested. #FundMy~~DrugAddition~~Life #BuyMyMixtape
  18. Can you add a 3D Anaglyph rendering feature?
  19. But I even copied my own Profile Picture. ![](http://i.imgur.com/EFVXezV.png)
  20. It's a bird, it's a planeā€¦ nope it's filters. ![](http://i.imgur.com/v3DnyLR.png)
  21. Had to add this filters. Makes it look more serious. ![](http://i.imgur.com/v3DnyLR.png) #BuyMySelfieAlbum2015
  22. ![](http://i.imgur.com/feYDAuA.png) 10/10 Eyebrow Game.
  23. So, I was just thinkingā€¦ Am I the only one who goes out of my way to look good? I can't possibly be the only male who gets his eyebrows waxed at a spa on a regular basis. ![](http://i.imgur.com/feYDAuA.png)
  24. > I don't think I can contain my emotions. Me neither dude, I'm pretty pissed off.
×
×
  • Create New...