Reputation
21,604
Next tag badge:
171/100 score
18/20 answers
Badges
6 42 120
Newest
 Nice Answer
Impact
~886k people reached

Jan
1
comment Is there a design pattern to remove the need to check for flags?
I reopened this for right now as I see the questions are inherently different and may be confusing to readers. If you would like to discuss this then please open a question in Meta and we can discuss if that was the right choice.
Dec
23
comment Tables vs. Booleans: Which of the two are more secure for setting admin roles in an app?
I wouldn't say that "Just pick one" is the best approach. It can tend to be a good approach but not the best one. I think that it comes down to what are the non-functional requirements of your application based on Quality Attributes. When two of these compete with each other is when you typically have a design dilemma. Picking the right design choice becomes a matter of which quality attribute has more priority for you.
Dec
22
revised How to scramble a word, keeping first and last characters the same?
Refocus to an algorithm question
Dec
22
comment Is the strong exception safety guarantee with a pass-by-value argument which can throw on destruction possible?
Comments are not for extended discussion; this conversation has been moved to chat.
Dec
16
comment How to find a subset of size k such that the minimum distance between values is maximum
A heroic effort but I am afraid this doesn't answer the question asked. The OP is specifically asking for a solution done with Dynamic Programming techniques, although I must admit, I do not understand the problem as stated here.
Dec
15
comment How to find a subset of size k such that the minimum distance between values is maximum
To be frankly honest I don't understand this question at all the way it is worded. It might be because it is late and my brain turned off. My only suggestion to you with dynamic programming is try to identify if you can break it into smaller problems that can somehow feed into the larger answer. Then try to think how you might solve this recursively using the previous recursive calls return value to feed your answer. Then you can try to figure out how you can memoize the sub problems into a single or two dimensional array so that as you progress through the table you can refer to previous.
Dec
15
comment How to find a subset of size k such that the minimum distance between values is maximum
I am not an expert at dynamic programming techniques by any means, but it does seem similar to the subset sum problem: geeksforgeeks.org/dynamic-programming-subset-sum-problem
Dec
15
comment How to find a subset of size k such that the minimum distance between values is maximum
If you would like help, try editing your question and posting how you might try to solve it in a brute force approach. You have to show some effort or it might be closed. Does it have to be dynamic programming?
Dec
3
comment Spring Batch + Web Scraping
Generally the best way to categorize batch tasks into "jobs" is if each job can be completely independent of the other in terms of success. If your end goal is that all 6000 urls are completed at a specific interval then it is best for that to be a single job. If these groups of URL's are significant enough or different in terms of scraping logic, then I would suggest creating Handler classes that can deal with each specific type of URL when it is read in.
Dec
3
answered Spring Batch + Web Scraping
Nov
25
comment Dealing with big data
@ViniVasundharan You are doing things backwards. Your first step is to clearly identify all of your requirements for predictive analysis. From there you can gather any questions about how to fulfill certain requirements you are confused about. Only then should you find a tool that can solve your problem. Requirements present problems. Tools provide solutions to those problems. Nobody can help you pick a tool if you cannot define what your problems are.
Nov
24
comment Is there anything that can be done with recursion that can't be done with loops?
Comments are not for extended discussions. Please use the chat room if you wish to continue your discussion. Thank you.
Nov
21
comment What is a good security practice for storing a critical database on developer's laptops?
Comments are not meant for extended chat. Please continue this discussion in the chat room. Thank you.
Nov
19
revised Where to describe architectural problems?
deleted 4 characters in body
Nov
19
answered Where to describe architectural problems?
Nov
10
revised Are there any significant disadvantages to depending upon abstractions?
Removing "List of Things" details from the question
Nov
3
comment Where to put common business logic in DDD with MVC
Sound approach but it sounds more like Transaction Script than Domain Model Driven.
Oct
27
awarded  Altruist
Oct
26
awarded  Nice Answer
Oct
24
awarded  Notable Question