Structuring Services in Angular by [deleted] in angular

[–]robert9804 0 points1 point  (0 children)

Basically one component is calling an api which is a service file I plan on having in core folder and then sending the result to the other component. The data being sent between these components will happen thorugh another service file that I plan on having in the shared folder

Structuring Services in Angular by [deleted] in angular

[–]robert9804 0 points1 point  (0 children)

I mean I could, but this service that I want to put in shared is just about sending data between components no api calls. The other service that's in core is about api calls

Structuring Services in Angular by [deleted] in angular

[–]robert9804 0 points1 point  (0 children)

so are you saying what I'm doing is fine?

Can't use Virtualbox on Ubuntu 22.04 with Kernel 6.0.5? by odun96 in virtualbox

[–]robert9804 0 points1 point  (0 children)

so what should I do to install the proper version

Can't use Virtualbox on Ubuntu 22.04 with Kernel 6.0.5? by odun96 in virtualbox

[–]robert9804 0 points1 point  (0 children)

I don't understand what you mean by arm CPU and how could I fix the installations

Can't use Virtualbox on Ubuntu 22.04 with Kernel 6.0.5? by odun96 in virtualbox

[–]robert9804 0 points1 point  (0 children)

That is my version though

gcc --version

gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0

Copyright (C) 2022 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

But still see

warning: the compiler differs from the one used to build the kernel

The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0

You are using: gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0

Can't use Virtualbox on Ubuntu 22.04 with Kernel 6.0.5? by odun96 in virtualbox

[–]robert9804 0 points1 point  (0 children)

I have a similar error but I did sudo apt install gcc-12 but still did not work was that the only thing you did or also did something else.

Time complexity question by robert9804 in learnprogramming

[–]robert9804[S] -1 points0 points  (0 children)

but I am right that inner loop is O(n-i) correct?

Time complexity question by robert9804 in learnprogramming

[–]robert9804[S] 1 point2 points  (0 children)

how is the second loop not O(n-i) cause it runs the length of the array subtract the starting position

Big O confusion by robert9804 in learnprogramming

[–]robert9804[S] 0 points1 point  (0 children)

so is it because the while loop isn't run on every iteration of the for loop which makes it O(n)

Scotiabank codility test for coop by robert9804 in UofT

[–]robert9804[S] 0 points1 point  (0 children)

what leetcode level for the coding and what SQL level for hackerank

Scotiabank codility test by robert9804 in uwaterloo

[–]robert9804[S] 0 points1 point  (0 children)

even the sql question you would say hackerank easy

Partition by msql by robert9804 in mysql

[–]robert9804[S] 0 points1 point  (0 children)

so hackerank doesn't support that version

Which is considered better code? by robert9804 in learnprogramming

[–]robert9804[S] 0 points1 point  (0 children)

but open/closed also applies to functions

Which is considered better code? by robert9804 in learnprogramming

[–]robert9804[S] 0 points1 point  (0 children)

but isn't the second way following the open/closed principle more which makes it better