21 questions
The questions are as follows!There is an ice mold of N×M size. The part with the hole is marked as 0 and the part with the partition is marked as 1.If the perforated parts are attached up, down, left,...
def solution(nums): answer = 0 l = int(len(nums) / 2) nums_set = len(set(nums)) if l < nums_set: answer = l elif l > nums_set: answer = nums_set else: answer = l return answerThis is Phonke...
def solution(sizes): answer = 0 # The smallest of the horizontal gyrings, the smallest of the verticals, # When you change the horizontal and vertical, if the value is less than the max of the changed...
def solution(n): answer = [] # First, pull out all the mineral water, and then leave only the few of the mineral water. for i in range(2,n+1): if n%i == 0: answer.append(i) for i in answer: cnt = 0...
Rails 6.0.4Ruby 3.0.2DockerIn the Rails tutorial, we are building and developing an environment with Docker.Now we're going up to Chapter 10, but we're testing with minitest and we're writing the acce...
I am trying to do an XCTest, but neither setUp nor testExample are called in the code below.import XCTestclass HogeTests:XCTestCase{ override funcsetUp(){ // Put setup code here. This method is calle...
modelclass test def initialize(val1,val2) validate(val1,val2) end private def validate(val1,val2) raise xxxx errorless val1.presnet? raise yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ...
Does anyone know how to link test codes and product codes?I'm currently developing software in Java, but it's getting a little complicated.I want to do the test well, so I want to know which test code...
I am using XCTest.For example, you would like to test the marker of funcaaa below.Then, it will fall in tableView.reload.By the way, tableView.reload does not affect the test results.Therefore, only c...
I would like to replace process.env for testing purposes.Currently, we are replacing it as follows.Is there a smarter way?describe('test', function(){ beforeEach(function(){ this.env = process.env; pr...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.