摘要:
Service: fromObservable & fromSignalcan transform observable to and from signals. import { HttpClient, HttpErrorResponse } from '@angular/common/http' 阅读全文
摘要:
This the following code example, test have passed for both run time and compile time: import { expect, it } from 'vitest'; import { Equal, Expect } fr 阅读全文
摘要:
There are two options doing the same things. const makeSafe = <TParams extends any[], TReturn>(func: (...args: TParams) => TReturn) => ( ...args: TPar 阅读全文
摘要:
Write a function that takes in an array of positive integers and returns the maximum sum of non-adjacent elements in the array. If the input array is 阅读全文
摘要:
The transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix A by pr 阅读全文
摘要:
Write a function that takes in two strings and returns their longest common subsequence. A subsequence of a string is a set of characters that aren't 阅读全文
摘要:
.card { width: min(700px, 90%, 70vw); // take the one currently is the min height: max(300px, 90%, 40vh); // take the one currently is the max font-si 阅读全文