上一页 1 ··· 211 212 213 214 215 216 217 218 219 ··· 491 下一页
摘要: How to test a service The service we want to test against: import {Injectable} from '@angular/core'; import {LoggerService} from './logger.service'; @ 阅读全文
posted @ 2020-02-12 16:50 Zhentiw 阅读(469) 评论(0) 推荐(0)
摘要: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2020-02-12 02:39 Zhentiw 阅读(218) 评论(0) 推荐(0)
摘要: Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 /** * Definition for a binary tree node. * function 阅读全文
posted @ 2020-02-10 20:46 Zhentiw 阅读(113) 评论(0) 推荐(0)
摘要: it ('should add two numbers', () => { const logger = jasmine.createSpyObj('LoggerService', ['log']) // logger.log.and.returnValue(); const calculator 阅读全文
posted @ 2020-02-10 02:52 Zhentiw 阅读(189) 评论(0) 推荐(0)
摘要: Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4] 阅读全文
posted @ 2020-02-07 04:24 Zhentiw 阅读(121) 评论(0) 推荐(0)
摘要: "scripts": { "ng": "ng", "start": "ng serve --proxy-config ./proxy.json", "server": "ts-node -P ./server/server.tsconfig.json ./server/server.ts", "bu 阅读全文
posted @ 2020-02-07 04:00 Zhentiw 阅读(140) 评论(0) 推荐(0)
摘要: // include all the scss @import "~@angular/material/theming"; // Include non-theme styles for core. @include mat-core(); $mat-custom-primary-theme: ( 阅读全文
posted @ 2020-02-05 04:17 Zhentiw 阅读(206) 评论(0) 推荐(0)
摘要: For example we have a rest endpoint, we need to validate the data we receive in correct format: import { IsMongoId, IsString, IsBoolean, IsInt } from 阅读全文
posted @ 2020-02-04 14:57 Zhentiw 阅读(1321) 评论(0) 推荐(0)
摘要: Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and num 阅读全文
posted @ 2020-01-30 04:10 Zhentiw 阅读(130) 评论(0) 推荐(0)
摘要: Yarn 2 is workspace aware. When you need to upgrade a package in one workspace, yarn will ask you if you want to resolve the version of the package to 阅读全文
posted @ 2020-01-27 22:14 Zhentiw 阅读(245) 评论(0) 推荐(0)
上一页 1 ··· 211 212 213 214 215 216 217 218 219 ··· 491 下一页