Submitted by: Mohammad Sajid Anwar
You are given a m x n
binary matrix.
Write a script to return the number of special positions in the given binary matrix.
You are given a m x n
binary matrix.
Write a script to return the number of special positions in the given binary matrix.
You are given an array of positive integers, @ints
.
Write a script to find out if it is possible to select two or more elements of the given array such that the bitwise OR of the selected elements has atlest one trailing zero in its binary representation.
You are given two arrays of integers of same size, @x
amd @y
.
Write a script to find the magic number that when added to each elements of one of the array gives the second array. Elements order is not important.
DISCLAIMER: These are my notes after attending the course [Building APIs with Swagger and the OpenAPI Specification].
You are given an array of @ints
.
Write a script to find the sign of product of all integers in the given array. The sign is 1
if the product is positive, -1
if the product is negative and 0
if product is zero.
You are given two sentences, $line1
and $line2
.
Write a script to find all uncommmon words in any order in the given two sentences. Return ('')
if none found.
You are given an array of integers, @ints
.
Write a script to find an integer in the given array that appeared 33%
or more. If more than one found, return the smallest. If none found then return undef.
You are given a string, $str
, made up of only alphabetic characters [a..zA..Z]
.
Write a script to return the greatest english letter in the given string.
You are given an array of integers, @ints
and a target element $k
.
Write a script to return the list of indices in the sorted array where the element is same as the given target element.
To restart the network manager in Ubuntu, first check the current status | |
$ nmcli general status | |
Now restart the network manager | |
$ sudo systemtl restart NetworkManager | |
Check the status again |