under powershell (run as admin) execute following.
wsl --set-default-version 1
then run your vm again.
under powershell (run as admin) execute following.
wsl --set-default-version 1
then run your vm again.
issue : Windows security settings.
Open the folder's Properties settings from the context menu. In the Security tab, click Edit, press Add... in the pop-up window and add your user to the list, check Full Control in the Allow column. Press OK twice to apply the changes.
sudo apt-get update
sudo apt-get install libopencv-dev
ref: https://www.youtube.com/watch?v=6pABIQl1ZP0
Input: [2,2,1] Output: 1
Input: [4,1,2,1,2] Output: 4
Input: [1,2,3,1] Output: true
Input: [1,2,3,4] Output: false
Input: [1,1,1,3,3,4,3,2,4,2] Output: true
Input:[1,2,3,4,5,6,7]
and k = 3 Output:[5,6,7,1,2,3,4]
Explanation: rotate 1 steps to the right:[7,1,2,3,4,5,6]
rotate 2 steps to the right:[6,7,1,2,3,4,5]
rotate 3 steps to the right:[5,6,7,1,2,3,4]
Input: [-1,-100,3,99]
and k = 2
Output: [3,99,-1,-100]
Explanation:
rotate 1 steps to the right: [99,-1,-100,3]
rotate 2 steps to the right: [3,99,-1,-100]