End hunger, achieve food security, improve nutrition and promote sustainable agriculture
Target
2.1
By 2030, end hunger and ensure access by all people, in particular the poor and people in vulnerable situations, including infants, to safe, nutritious and sufficient food all year round
Target
2.3
By 2030, double the agricultural productivity and incomes of small-scale food producers, in particular women, indigenous peoples, family farmers, pastoralists and fishers, including through secure and equal access to land, other productive resources and inputs, knowledge, financial services, markets and opportunities for value addition and non-farm employment
Target
2.4
By 2030, ensure sustainable food production systems and implement resilient agricultural practices that increase productivity and production, that help maintain ecosystems, that strengthen capacity for adaptation to climate change, extreme weather, drought, flooding and other disasters and that progressively improve land and soil quality
Did you know that you can tell upon the colour of the meal what is it good for?
Task: Line up the fruits and vegetables based on instructions:
The first in an array is a blue or indigo fruit
The last one is the biggest of all
The second one is a 'sad vegetable' - it makes you cry
Peas are on even position in the lower half of the array
Blueberries are not the first and they are 'surrounded' with vegetables
Strawberries are at the position next to the fruit of the same colour
Peaches are on the position equal to the number of letters in their name
When you form an array, enter the colour of each fruit/vegetable starting from first, until the last item.
Background: sorting is important for optimizing the efficiency of other algorithms (such as search and merge algorithms) that require input data to be in sorted lists. It's easier to find needed data in a collection if that collection is sorted. Would you be able to find a word in a dictionary if words were not arranged in alphabetical order?
BLUE
WHITE
ORANGE
RED
INDIGO
YELLOW
GREEN
RED