Questions tagged [implementation]

Deals with various issues of implementation.

Deals with various issues of implementation of functions, features, languages, etc.

2196 questions
0
votes
3 answers

How to convert this recursive function to a dp based solution?

This is the recursive function def integerPartition(m, n): if(n==0): return 0 if(m ==0): return 1 if(m<0): return 0 return integerPartition(m,n-1) + integerPartition(m-n,n) and this is what i have done in…
nikhil6041
  • 55
  • 1
  • 8
0
votes
2 answers

Translating and understanding the @Scheduled cron message

I have this code. This cron message means "do this method every Sunday in 01.00 a.m." or I make a mistake translating this? @Scheduled(cron = "0 1 0 * * ?") private void notificationsScheduler() { //implementation }
Vytsalo
  • 670
  • 3
  • 9
  • 19
0
votes
0 answers

Python graphs class implementation

Is anyone able to help me understand bellow exercises ? i need to implement Graph Class. The example of usage g = Graf(set([1,2,3]), set([(1,2), (2,3), (3,1)])) for podgraf in g: print podgraf and the answer should be I'm looking on this…
Bard91
  • 11
  • 1
  • 4
0
votes
1 answer

chartjs-plugin-datasource implementation in React (react2chartjs)

as the title suggest, i am trying to import data from Excel and display it as charts using ChartJs. Got some idea based on this question : (Import data from Excel and use in Chart.js) and got it working. But what im trying to do now is to implement…
Arepeel
  • 1
  • 1
0
votes
2 answers

Apply function Pandas ?? Implementation

I made some function like this: data['Age'] = data[['Age',School]].apply(age_implementation, axis = 1) by doing so I want to full NaN values in "Age" column based on School of child and this is the definitione of my "age_implementation" function.…
dingaro
  • 2,156
  • 9
  • 29
0
votes
0 answers

Error when add implementation for gradle to add ads

I would like to add ads from ADmob The problem is when i add implementation for gradle the program stops working once you open it in any phone or emulator What is the solution ..? the list of ERROR is : 12-06 11:24:45.656 1786-1786/?…
0
votes
2 answers

How Models and Bounded-Contexts are mapped into the codebase DDD?

Models and Bounded-Context conceptually are: Model: A system of abstractions that describes selected aspects of a domain and can be used to solve problems related to that domain. Bounded-Context: The setting in which a word or statement…
adnanmuttaleb
  • 3,388
  • 1
  • 29
  • 46
0
votes
1 answer

How to implement the RSMC part of Lightning network?

The Lightning Network consists of two contracts, RSMC(revocable sequence maturity contract) and HTLC. Now I need to implement the RSMC part. I understand the specific steps in the theory of the RSMC contract, but the implementation process…
Oiiiwk
  • 31
  • 5
0
votes
1 answer

how to do Junit for shallow/deep copy of LinkedList

hello there i did the deep copy and the shallow copy is suggested by the user AndyMan and now i did the JUnit and im having a slight problem making those tests: 1.deep copy method public ListNode deep_clone() { first =…
StudentAccount4
  • 186
  • 1
  • 11
0
votes
1 answer

how do I test my implementation of google authenticator?

I have written an implementation of google authenticator as described here: https://en.wikipedia.org/wiki/Google_Authenticator Now my only question is: how can I check whether the 6 digit codes my program generates are correct? I haven't been able…
Henrik4
  • 464
  • 3
  • 13
0
votes
0 answers

Travel randomly through a matrix

I have just finished a project where I implemented the recursive backtracking algorithm for a maze generator. Since then I have been looking for an algorithm that goes through a matrix but passing through each square only once. Just like in the…
0
votes
1 answer

Does git stash saves code for all times or only until the next garbage colleciton?

Some colleges and i discussed about the implementation of git stash. Some colleges says that git stash saves code in the same way as saved in a branch, but without a branch. I thought until now, that git stash saves the code only until the next…
0
votes
1 answer

I need to implement a method where I can get key from value and method delete

I have a class MapEntry to implement Hashmap. I need to implement a method where I can get key from value and method delete. I know that HashMap does not implement such method as getValue but my prof asked to do this. I'm new to programming how it's…
0
votes
1 answer

How to implement generic interface as a non-generic class Java

I want to realise a java class, based on generic interface. I got error class GroupDaoImpl must be declared as abstract or implement abstract method update() What i do wrong? My interface public interface EntitiesDao { void add(List
Vytsalo
  • 670
  • 3
  • 9
  • 19
0
votes
1 answer

BN curves in Charm crypto library

I'm using Charm to implement a scheme and I know it has "SS512", "MNT159" and "prime192v1". I don't know if Charm includes BN curve? If it doesn't, how to implement it with Charm.
chaoliu
  • 1
  • 1