New answers tagged interview-questions
-2
class Solution {
HashMap<String, Integer> memo = new HashMap<String, Integer>();
public int solve(int[] coins, int amount, int startFrom) {
//0$left, so we can reach 1 way
if(amount == 0) return 1;
//already -ve amount means this combination wont work
if(startFrom < 0 || amount < 0) return 0;
/...
2
The code does not fully comply with what is asked in the assignment and the code readability is sometimes hard.
These critiques will be corrected throughout the code when we implement the fundamental idea to ...
Manipulate the data, not the display
Take this as a fundamental principle. Many OO design and coding buzz-word benefits naturally flow from this.
...
Top 50 recent answers are included
Related Tags
interview-questions × 902java × 346
algorithm × 159
python × 136
c# × 132
strings × 95
javascript × 90
programming-challenge × 89
c++ × 82
performance × 69
complexity × 50
array × 48
beginner × 45
object-oriented × 45
linked-list × 42
c × 38
unit-testing × 33
tree × 32
python-3.x × 31
recursion × 25
matrix × 21
comparative-review × 19
stack × 19
graph × 17
scala × 17