Questions tagged [problem-solving]
Problem solving encompasses a number of techniques known as algorithms, heuristics, root cause analysis, etc.
89 questions
3
votes
2
answers
256
views
How to manage cart details across various devices
Recently I was asked in a interview to implement to e-commerce site .
One of the requirement was to maintain cart details across various devices .(i.e) if user adds a book from his iPhone , and when ...
0
votes
2
answers
168
views
Conceptual approach to identifying duplicates
I'm not sure if this is the right stack exchange site for this, or maybe this is more of a reddit question, but don't rake me over the coals for asking. Happy to go post on another corner of the ...
7
votes
1
answer
2k
views
Algorithm for floor tiling
I'm looking for an algorithm for placing tiles of different sizes within a complex area (all 2D) as randomly but efficiently as possible. I know the different dimensions of the tiles provided and the ...
-1
votes
2
answers
135
views
How to measure how "changy" something is? [closed]
I need to think of a way to model how one thing is more "changy" than another.
Say I need to index a news website's different news sections with some web crawler. I want to prioritise ...
35
votes
9
answers
2k
views
Abstraction: The War between solving the problem and a general solution [closed]
As a programmer, I find myself in the dilemma where I want make my program as abstract and as general as possible.
Doing so usually would allow me to reuse my code and have a more general solution ...
0
votes
4
answers
660
views
The problem of letting the receiver instead of the sender generate an ID
Lately I've encountered a similar problem in a few different circumstances, and every time it has required quite a bit of extra code to work around it.
The problem I'm talking about is the one where ...
1
vote
0
answers
209
views
Rectangle packing / Bin packing with multiple frames
I have multiple rectangular frames, with different fixed heights. The width should be minimized and there is a maximum width. Then there are many different smaller rectangles. These should be packed ...
1
vote
2
answers
374
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 ...
40
votes
10
answers
2k
views
Where do you draw the line for your perfectionism? [closed]
Perfectionism may be good and bad when programming.
When and where do you draw the line when you are problem solving?
When do you decide when a solution is overkill, too general or simply too ...
1
vote
1
answer
217
views
Which class of problems is this?
I’m working on a problem which I will try my best to describe:
You have a stack of 5 blocks: labelled A, B, C, D and E.
You also have a set of rules giving points if certain conditions are met, for ...
7
votes
1
answer
656
views
Smallest Rubik's cube state representation
I'm trying to determine what is the fewest number of bits I need to represent the state of a Rubik's cube. (EDIT: I am assuming the cube is a valid Rubik's cube that has not been altered and only ...
0
votes
1
answer
138
views
How to identify rules satisfying a certain condition based on events
I am working on a microservice, in an event driven world, where I have tens of 1000s of rules configured which depend on data type A, B, C, D and so on.
As soon as an event arrives I want to be able ...
6
votes
3
answers
2k
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 ...
5
votes
4
answers
2k
views
What is a good way to brainstorm algorithms on a computer? [closed]
I'm looking for something that allows me to work out an algorithm on a computer similar to how I would do it on a whiteboard. At work, I have a huge whiteboard that I can use for this, but at home, I ...
0
votes
1
answer
189
views
How to resolve multiple user serve on multiple location appointment booking system
I'm trying to build an appointment system but at one point I stuck
Problem:
I define available slots for the next 7 days with help of a cron.
I have multiple users serve service more than one ...