Posts by Matheus • 187 points
12 posts
-
0
votes1
answer37
viewsQ: Modified Linux kernel build error
I am trying to compile a modified version of the linux kernel (Xdplua). I followed the steps present in the Arch wiki (because I use Manjaro)…
-
0
votes0
answers59
viewsQ: How to read this relation in this ER diagram?
Having this ER diagram how do I read the relationship between account and customer? I thought to read as follows "A customer can have N accounts, and an account is always associated with M clients"…
-
4
votes1
answer326
viewsQ: How to prove the amount of leaves of this tree by induction?
If each non-leaf node of a binary tree always has two offspring as I can prove by induction that the number of leaves will always be the number of nodes not leaf plus one ? I did it this way, but I…
asked Matheus 187 -
0
votes0
answers404
viewsQ: What is the reason for a Runtime error in this code?
I have an exercise to do and submit it to an automatic broker (Sharif), in my tests all cases work out, but in the broker I’m receiving a Runtime Error, I’ve reviewed this code many times and I…
-
4
votes1
answer126
viewsQ: Why am I getting access to this pointer even after I’m free?
I have this program and theoretically it was not to lose the address of new after giving the free making the same inaccessible ? #include <stdio.h> #include <stdlib.h> typedef struct{…
-
1
votes1
answer175
viewsQ: Dynamic allocation giving problem in c++
Have this problem to solve in Hacker Rank and my code for the solution of this problem was as follows: #include <cmath> #include <cstdio> #include <vector> #include…
-
2
votes2
answers190
viewsQ: Why is it possible to change constant values in Javascript arrays?
Having the following code: const arr = [1,2,3]; console.log(arr); arr.push(4); console.log(arr); arr.pop(); console.log(arr); arr shouldn’t it be constant? And therefore shouldn’t accept the method…
-
4
votes3
answers73
viewsQ: When I click on the text it does not change (js)
I’m learning JS and I can’t understand why I don’t change H1’s text when I click on it. <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Testes…
-
1
votes1
answer88
viewsQ: What is the track Listing and grid track in the grid layout?
I read the documentation of Mozilla but I could not understand very well what would be the grid track and nor the track Listing, someone could explain in a simpler and intuitive way what would be…
-
0
votes1
answer1018
viewsQ: How to remove a node in a binary search tree with these specifics?
I have the following binary tree : Defined by the following data manure : typedef struct Node{ int data; struct Node * left; struct Node * right; } node; typedef struct Node * root; And I have the…
-
-1
votes1
answer49
viewsQ: What would be the name of this "technique"?
int valorNo = (p->left == NULL && p->right == NULL) ? p->key : 0; I saw it in an answer here in the stack and I have no idea how it works, much less how to "read" it.…
-
1
votes1
answer164
viewsQ: Does the r+ C mode for files not create the file if it does not exist?
I am working on this code below and would like to store some random vectors in a file. From what I read the r+ mode reads the file and writes to it, and if it doesn’t exist it will be created.…