This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "offerPackagePrototype": { | |
| "packages": [ | |
| { | |
| "packageId": "PKG-1761827176892-1", | |
| "accepted": true, | |
| "packageName": "Paket 1", | |
| "selectedProducts": { | |
| "heatPump": { | |
| "id": "hp1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NumMatrix { | |
| matrix: number[][] | |
| register = new Map<string, number>() | |
| constructor(matrix: number[][]) { | |
| this.matrix = matrix; | |
| } | |
| sumRegion(row1: number, col1: number, row2: number, col2: number): number { | |
| let total = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * There are 3 key problems with the React code below. Can you find them? | |
| * Assume fetchUserProfile exists elsewhere. | |
| */ | |
| import { Suspense, useState, useEffect } from "react"; | |
| //the lack of type declarations | |
| const SuspensefulUserProfile = ({ userId }: { userId: number }) => { | |
| const [data, setData] = useState({}); |