Tagged Questions

Problem solving encompasses a number of techniques known as algorithms, heuristics, root cause analysis, etc.

learn more… | top users | synonyms

-2
votes
1answer
28 views

Technical and Problem Solving type questions for Graduates [on hold]

My company is looking to hire some graduate developers soon so I wanted to start putting together some questions to ask in the interviews. Ideally I'd like to ask a few basic technical question about ...
-3
votes
0answers
40 views

How can i delete 1st newline form any text file by using Regex code or using java? [closed]

[Probelem] I need a java source code which could delete or remove first 1 single newline form text file or Need a RegEX code notepad++ for remove or delete 1 single newline. I'm having a serious ...
-1
votes
0answers
14 views

ACM ICPC how to use PC^2? [migrated]

Yesterday we had a practice on the PC^2 it is the official judge software for the contest but I had a problems with it, my code for the problem is correct and the answer is correct but when I send it ...
1
vote
2answers
279 views

How to set an ungoogleable coding test? [closed]

Question In a coding test (for example), what is an example of a type of question that cannot be easily googled to find the answer? Is there a formula that can be used to create questions that are ...
-1
votes
2answers
118 views

How do developers deal with “where to start” problem in a context of overwhelming difficulties caused by too much heterogeneous information? [closed]

A friend of mine, a beginner PHP programmer, needs to link the product his company develops with a third-party product (a set of web services). He received the "relevant" documentation (a few hundred ...
2
votes
1answer
183 views

Solving a probabilistic problem

So I am interested in Computational Investing and came across this problem on a wiki page: Write a program to discover the answer to this puzzle:"Let's say men and women are paid equally (from ...
3
votes
2answers
165 views

Ranking players depending on decision making during a game

How would I go about a ranking system for players that play a game? Basically, looking at video games, players throughout the game make critical decisions that ultimately impact the end game result. ...
1
vote
0answers
43 views

Setting permissions issue for admins and lower users in project

I am working in a jsp project an got stuck in a big problem. My project consist of accounts table for super admin, reseller, admin and users for executives and manager mapped in the account ...
1
vote
2answers
117 views

What do you call a problem caused by a design flaw [closed]

Is there any terminology for a problem that is caused by a previous wrong decision? For example you build your own framework, with a flawed MVC design. This in turn leads to weird situations when ...
3
votes
3answers
278 views

Genetic Algorithm new generation exponentially increasing

I'm programming Genetic Algorithm in C++ and after searching all kind of ways of doing GA'a operators (selection, crossover, mutation) I came up with a doubt. Let's say I have an initial population ...
0
votes
1answer
64 views

Automatically analyze excel files

I have to replicate a manual generation of a large number of excel files. I started to manually track the relations between cells ( files, formulas, etc). I also had a talk with the person which ...
4
votes
1answer
199 views

Does anybody recognize this scheduling problem? Is there an algorithm for it?

Consider the following problem: Description: There are n jobs J1...Jn with cycle times C1....Cn. Find a time quanta and a scheduling table considering that: any element of the table contains at ...
0
votes
1answer
118 views

Estimed number of tries

Problem: The Oscar Committee wants to decide which person should get the best actor award among the given N actors.For that they decided to use a random function random_bit() which returns either 0 ...
-1
votes
7answers
243 views

How to avoid errors and not miss anything [duplicate]

I have a problem that is more serious than it might seem. I've been programming for about three years , and I have learned and improved a lot , I read the code easily to others, understand the ...
-2
votes
1answer
120 views

Permutations of an array [closed]

I have an array of integers of length 20, filled with fourteen 0s, two 1s, two 2s and two 3s. It is like this: [0,0,0,3,0,2,0,0,3,0,0,0,1,0,2,0,0,1,0,0]. I need a way to list all of its 20!/(14! 2! ...
1
vote
4answers
151 views

Optimistic & Pessimistic Programming - Ensuring multiple tasks are called only once for specific record

Let's say you have 10 database records which you need to process in the following way: Start Pull 2 records from the database with the 'Processed' flag set to 'false' Call the external web service ...
1
vote
3answers
319 views

Are problem-solving programming questions useful for improving one's general programming ability?

For example, like: The inaugural International Olympiad in Frogleaping is being held in Australia in 2013 and you are determined to win. While you want nothing to do with such slimy, jumpy ...
0
votes
0answers
34 views

I have URL and ID pairings, and I send the URLs to an API which it returns in no specific order. How should I pair them back up?

This is a programming problem that I haven't came across yet and I want to make sure I'm tackling it in an efficient manner. I have an array of dictionaries, with each dictionary consisting of a ...
6
votes
2answers
422 views

Do I have to be skilled in advanced theoretical problem solving to become a good programmer? [closed]

I have been doing programming for about a couple of years. I am currently in University 2nd year. In most universities here, the problem solving from sites like uva.onlinejudge.org and ...
2
votes
1answer
243 views

Programming puzzle with constant selection

THE QUESTION: There is an event where there are N contestants. There are three tasks in the event: A,B,C (say). Each participant takes part in the events in the listed order: i.e a contestant must ...
0
votes
0answers
134 views

Karger's algorithm for bin-packing?

I first came across that algorithm as the "Random minimum cut" algorithm. And recently a colleague was trying to pack a big quantity of small textures into one image file. Then it clicked - why not ...
-3
votes
2answers
2k views

Java: The best way to learn it when MOOCs and books are not enough? [closed]

This topic was taken from Stack Overflow, but it was put on-hold due to Opinion-based question. So I moved it to here. I've had some great troubles with my homework exercises and I've used ...
4
votes
3answers
419 views

How to detect root cause of problem or bug [closed]

Often in coding, I find it very slow and difficult to detect the root cause of a bug and sometimes I end up going to wrong point in my code. It's painful. I know that to detect the root cause of a bug ...
6
votes
5answers
711 views

How to save during real-time collaboration

I want multiple users to edit same document. Problem I'm facing is when a new user joins, he might see an outdated document. How do I make sure that new users get most recent changes? Some solutions ...
-3
votes
1answer
406 views

Any tips in tackling extremely complex problems like the Hanoi Tower problem? [closed]

People often give me the "divide and conquer" tip, but I think for some problems it's not nearly enough. The problem with such a complex problem as the Hanoi Tower problem is that you can't even ...
1
vote
1answer
149 views

Idea of the binary search main theorem

This link really provided some insights into the idea that binary search implications into the optimization problems by giving the main theorem. I am not really confident that I get the idea of the ...
12
votes
8answers
1k views

In an interview, is it better to code a brute-force solution to a tough question, or to spend the interview examining the question carefully?

Sometimes interview questions are hard, whether the interviewer intends them to be, or not. It can come down to a choice of whether to use the limited interview time to code up an ugly, inefficient, ...
0
votes
2answers
240 views

Help to simplify/model complex decision making (if, then, else scenarios)

I find my self in a situation, where I need to program a service, that can determine if two object in a huge database are the same. For simplicity, let's say it's used cars, and I want to determine if ...
6
votes
3answers
308 views

Should I fix small issues or let them go? [closed]

I ran into the following issue where a keyboard shortcut I was used to was no longer working in Ubuntu. That's just an example. For programming, this kinds of thing happens a lot, but it also happens ...
2
votes
1answer
391 views

Sublinear Extra Space MergeSort

I am reviewing basic algorithms from a book called Algorithms by Robert Sedgewick, and I came across a problem in MergeSort that I am, sad to say, having difficulty solving. The problem is below: ...
17
votes
3answers
1k views

How to avoid jumping to a solution when under pressure?

When under a particularly strict programming deadline (like an hour), if I panic at all, my tendency is to jump into coding without a real plan and hope I figure it out as I go along. Given enough ...
6
votes
4answers
695 views

algorithm for project euler problem no 18

Problem number 18 from Project Euler's site is as follows: By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 ...
1
vote
3answers
2k views

Calculating 3d rotation around random axis

This is actually a solved problem, but I want to understand why my original method didn't work (hoping someone with more knowledge can explain). (Keep in mind, I've not very experienced in 3d ...
5
votes
3answers
614 views

Steps to create a solution for a problem

I am a trainee. According to my teacher to solve a problem we should go through following steps: Create Algorithm (optional) Create a Datatable: By analyzing the problem, create main concepts in ...
13
votes
6answers
522 views

When to prefer a generalized solution over solving specific cases

In programming we're often faced with a choice: cover each conceivable use case individually, or solve the general problem: Its obvious that solving the immediate problem is faster, however ...
3
votes
2answers
180 views

How to find an error in a tcp server application for which there is no source code

I have a c++/cli tcp client application sending a data in a specific format like L,20100930033425093,-5.929958,13.164021 to a main application on port 9000.The main application is actually done by the ...
8
votes
6answers
1k views

How do the algorithms to solve problems encountered in interviews translate into real world solutions?

I have recently finished an undergraduate course in computer science and I am looking for a job. During the search I encountered several interesting (and tough) problems that needed clever algorithms ...
1
vote
1answer
198 views

What is the best way to maintain our programming experiences? [duplicate]

Possible Duplicate: how do you remember programming related stuff? During my work experiences, I always met many kind of blocking problems with different technologies. When I remember the ...
1
vote
2answers
1k views

Flowchart for solving programming problems

I noticed that every developer implements a somewhat different flowchart for solving programming problems. By flowchart I mean a defined system of techniques that the developer goes through in a ...
3
votes
5answers
317 views

How can a developer evaluate the effectiveness of his workflow?

This question has been on my mind for probably 10 years. Ever since I've started programming for a living. And I've seen multiple discussions about good fit, distractions, being in the zone, etc. But ...
9
votes
6answers
604 views

Is it important for a solution to be an efficient one?

I solve many problems, mostly from Top Coder. I will get answers for many, but most times I end up with an inefficient solution. In real-world implementations - does it really matter that a solution ...
-1
votes
2answers
1k views

Good collection of short code samples in different languages to solve programming problems? [duplicate]

I am interested in learning some new programming languages and looking for the collection of short solutions for programming problems provided in different languages. The optimal format would be: ...
3
votes
6answers
691 views

Best way to get programmers to ask for help when they get stuck

What is the best way to ensure that programmers ask for help when they get stuck on a problem, rather than spending too much time trying to figure something out when they've hit a wall? I'm ...
19
votes
11answers
4k views

Is “White-Board-Coding” inappropriate during interviews?

This is a somewhat subjective quesiton but I'd love to hear feedback/opinions from either interviewers/interviewees on the topic. We split our technical part into 4 parts. Write Code, Read & ...
-1
votes
2answers
348 views

Why are assumptions important when defining a puzzle?

in this question OP has presented a site where some puzzle are available. He described the problem about solving them. I was curious is that really so problematic. The first one was really easy, so I ...
5
votes
4answers
440 views

How to effectively (but minimally) *simulate* a distributed computing environment?

I am doing some personal research on Byzantine Faults. I am trying out algorithms from various research papers which present algorithms for consensus in distributed systems like this one. For this i ...
2
votes
4answers
269 views

How can I find the root of confusing problems?

Several times after posting over at Stack Overflow, I have found that the problem I have is somewhat specific, and may have issues rooted elsewhere in my code. These are very difficult to solve with a ...
3
votes
7answers
2k views

How to pay more attention to detail as a developer?

Are there any resources for paying more attention to detail as a software developer? (Especially edge cases, or small mistakes in code, details in the problem description, ramifications for certain ...
40
votes
12answers
2k views

Is thinking out loud during an interview really the best strategy?

In another question I asked recently about best practices for whiteboarding, there was general consensus that thinking out loud while coming up with the answer was the best strategy. Indeed, long ...
5
votes
2answers
636 views

Improving analysis skills

I am a software engineer with a couple of years of experience. However I feel my problem solving skills need to be improved. To put in crude terms given facts A and fact B I have difficulty in ...