![morgeron6071](/avatars/18196.jpg)
morgeron6071
20.09.2020 •
Computers and Technology
You are stranded on a desert island with all of the food and water you would need. you have no electricity, no cell phone signal, and no internet. you must live there for 30 days by yourself. what 3 items would you want with you and why?
Solved
Show answers
More tips
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
- F Food and Cooking How to Properly Cook Buckwheat?...
Answers on questions: Computers and Technology
- C Computers and Technology The initial state of a stack S and a queue Q is empty. The elements A, B, C, D, E, and F pass through the stack S in turn, and an element enters the queue Q after being popped...
- C Computers and Technology What is the highest memory...
- C Computers and Technology People from this cultural group are more tolerant to new ideas and opinions that differ from their own A) North Americans B) People with low uncertainty avoidance C) None of these...
- C Computers and Technology By 2011, some circuits had more than _______ transistors....
- C Computers and Technology How much wood could a wood chuck chuck if a wood chuck cod chuck wood...
- H History Zionism supported which of the following? a.- the establishment of us embassies in israel l.b.- the creation of british-controlled oil industries in the middle east.c.- the modernization...
- M Mathematics Penny is painting pictures for a gallery show. her goal is to have 16 paintings to sell at the show. the table shows the total number of paintings in her gallery collection after...
- M Mathematics Which expression is equivalent to 4−22−3 ? −16 −8 8 16...
- E English Active and passive change the voice of the following sentences. 1. was she driving a car? 2. will the children be taught by you? 3. who has taken the class? 4. how can the exam...
- M Mathematics What is the first step in solving the inequality -4(3-5x) -6x9?...
Ответ:
Sew explaination foe code
Explanation:
import java.lang.*;
import java.util.*;
import java.io.*;
class Main
{
public static Boolean checkSubset(int[] list1, int[] list2)
{
int l = list2.length;
for(int i = 0; i<list1.length-l; i++)
{
Boolean flag = true;
for(int j = 0; j<list2.length; j++)
{
if(list1[i+j] != list2[j])
{
flag = false;
break;
}
}
if(flag) return true;
}
return false;
}
public static void main(String args[])
{
int[] l1 = {1,6,2,1,4,1,2,1,8};
int[] l2 = {1,2,2};
System.out.println(checkSubset(l1,l2));
}
}