This file contains 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 Solution { | |
class Step { | |
int x; | |
int y; | |
int level; | |
Step(int x, int y) { | |
this.x = x; | |
this.y = y; | |
} | |
Step(int x, int y, int level) { |
This file contains 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
public Enum Operation { | |
PLUS ("+", (x, y) -> x + y) | |
.... | |
} |
This file contains 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
List<String> words = List.of("tim", "beef", "lin"); | |
Collections.sort(words, new Comparator<>() { | |
@Override | |
public int compare(String s1, String s2) { | |
return Integer.compare(s1.length(), s2.length()) ; | |
} | |
}) ; |
This file contains 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
<div *ngFor="let item of qaList;let qIndex= index;trackBy:customQTrackBy"> | |
<div class="card"> | |
<div class="card-header bg-info text-white h5"> | |
Q{{(qIndex+1) + '. ' + item.question.questionContent}} | |
</div> | |
<div class="row input-group"> | |
<textarea class="form-control" rows=2 name="questions-{{qIndex}}" [(ngModel)]="item.question.questionContent" | |
#editQ="ngModel" required></textarea> | |
......... | |
...... |
This file contains 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
this.qaList = [{ | |
question: <QuestionDto> { questionContent: 'Do you have any hobbies?', questionOrder: 0, isDefaut: true }, | |
answers: [ | |
<AnswerDto> { answerContent: 'I like to swim.', isDefaut: true}, | |
<AnswerDto> { answerContent: 'I like to play basketball.', isDefaut: false}, | |
<AnswerDto> { answerContent: 'I like to play badminton.', isDefaut: false} | |
] | |
}]; |