Questions tagged [implementation]

Deals with various issues of implementation.

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

2196 questions
0
votes
0 answers

How to implement increase key operation in a binary heap

I want to implement a max binary heap in c. The header that I written: typedef struct max_heap_t *max_heap_ptr; max_heap_ptr max_heap_create(size_t element_size, size_t key_size, int (*key_compare)(void *a, void *b)); size_t…
Vincenzo
  • 45
  • 3
  • 11
0
votes
2 answers

Gupshup whatsapp bot estimated implementation time

Hello we are a small team looking to implement a Gupshup/Whatsapp bot. We are wondering how long does it take for this kind of bot to setup and have in working order? apologies if is not a technichal question, but we are not sure where else to ask.
Ariako
  • 1
0
votes
1 answer

Karatsuba Implementation C++

So I've decided to take a stab at implementing Karatsuba's algorithm in C++ (haven't used this language since my second coding class a life time ago so I'm very very rusty). Well anyhow, I believe that I've followed the pseudocode line by line but…
Michael
  • 49
  • 3
0
votes
2 answers

Does cout/cin internally call printf() / scanf() like `new` calls malloc?

I have looked it up over the Internet. I have found many answers comparing cin vs scanf() and cout vs printf(), but never found if cin actually uses scanf() internally like new operator in C++ uses malloc() function of C.
Charan Sai
  • 105
  • 2
  • 9
0
votes
1 answer

Flutter: List inheritance in classes

Hello guys I am new on flutter and building a new app... I have a problem that I cannot do it... I want to call elements of List from another class, I wrote some code but I could not call to another class please answer me... I need your…
Rasat
  • 27
  • 2
  • 7
0
votes
1 answer

Wrapping a implementation in a more abstract method

First of all deep apologies if this question is unclear, I did not know a better way to word it. So, I am currently doing some light reading( Clean code by Robert C Martin), and I have stumbled upon something I do not get. This quote was written by…
0
votes
1 answer

missing concrete implementation of InheritedWidget.updateShouldNotify

I am following a flutter tutorial and it's an old one so I already had to make changes as per the changes in dart and some libraries but I am getting this error and the guy in tutorial gets no such error there. PS: its the only place where…
GreenCodeSki
  • 649
  • 1
  • 6
  • 11
0
votes
0 answers

Why is any modification in the header file doesn't affect in main file when building?

I'm trying to implement a stack using array in #c. I have created the implementation and the header files, then linked the stack C library from linker setting. The structure of the stack is included only in the header file stack.h. #define…
0
votes
1 answer

Split Widgets ,How am i adding information from another widget to main widget?

I am new at Flutter and I can't understand some things. I split small widgets for improving my system but i dont know how i will add data from other page.I want to show days of week and i splitted this days another widget this way "DaysOfWeek.dart"…
0
votes
0 answers

Question about implementing adjacency matrix in unconventional fashion

I was recently given an assignment that requires the need to construct an undirected unweighted graph in order to later on use it in a BFS algorithm. For some background, the adjacency matrix stores vertexes in string form, and its edges in string…
0
votes
0 answers

KMeans implementation in python with OOP?

I am trying to implement KMeans algorithm as a class and when i done all code i test with creating object and than train the dataset. But i get the following error. self.distances = np.zeros((self.N, self.n_clusters)) TypeError: only integer scalar…
Gjurcin
  • 1
  • 3
0
votes
1 answer

I cannot join volley 1.1.1 In Syria, it is prohibited, but I use the proxy. Is there a way to communicate?

I cannot sync Volley dependency to my project buildscript { repositories { google() jcenter() } implementation 'com.android.volley:volley:1.1.1' Show me this error Could not resolve com.mcxiaoke.volley:library:1.1.1. Could not get…
0
votes
1 answer

This C++ stack implementation doesn't produce any output

void solve(int n, int a[]) { stack s; s.push(a[0]); for (int i = 1; i < n; i++) { if (a[i] < s.top()) { while (!s.empty()) { cout << s.top() << " "; s.pop(); } cout << "\n"; } else { …
0
votes
1 answer

Unexpected functioning of Trie delete function

I am new to programming in Java , I had written code for trie to store numbers as bits(the last 31 bits from right) . Therefore each node has only two possible children at max, 0 or 1. The node for each trie node has the following attributes Node…
95_96
  • 341
  • 2
  • 12
0
votes
1 answer

My Quicksort fails when sorting pre-sorted items, how to improve?

This is a standard recursive quickSort implementation, and it succeeds at sorting larger lists for unsorted items but not for "pre-sorted" items. I knew it would take longer, but not fail altogether. Any possible improvements? void quickSort(int…
sabowsky
  • 1
  • 1