Powershell 3 Cmdlets Hackerrank Solution

# Step 1: Read the input from stdin. # We explicitly cast the input to [int] to ensure it is treated as a number. $n = [int](Read-Host)

.PARAMETER cmdlet The name of the cmdlet to execute.

$result = $data | Where-Object $_ -gt 0 | Measure-Object | Select-Object -ExpandProperty Count

His command returned 3 (lines 1, 3, 5). The expected output was 3 . It passed.

The "solution" to this challenge usually centers on the three foundational cmdlets that allow a user to learn the shell from within the shell itself:

In an instant, a new file appeared in the directory, holding the vital data safe for the boss to see. The challenge was complete.

Hotline
Hotline
Xác nhận Reset Key/ Đổi Máy

Bạn có chắc chắn muốn Reset Key/ Đổi Máy trên Key này không?

Máy tính đã kích hoạt Key này sẽ bị gỡ và bạn dùng Key này để kích hoạt trên máy tính bất kỳ.