В рамках этого Ката вам нужно создать функцию, которая, получив триплет, возвращает индекс числового элемента, находящегося между двумя другими элементами.
На вход функции будет подан массив из трех разных чисел (в Haskell: кортеж).
Например:
gimme([2, 3, 1]) => 0
2 - это число, которое находится между 1 и 3, а индекс 2 во входном массиве равен 0.
Другой пример (просто чтобы было понятно):
gimme([5, 10, 14]) => 1
10 - это число, которое находится между 5 и 14, а индекс 10 во входном массиве равен 1.
В рамках этого Ката вам нужно создать функцию, которая, получив триплет, возвращает индекс числового элемента, находящегося между двумя другими элементами.
На вход функции будет подан массив из трех разных чисел (в Haskell: кортеж).
Например:
gimme([2, 3, 1]) => 0
2 - это число, которое находится между 1 и 3, а индекс 2 во входном массиве равен 0.
Другой пример (просто чтобы было понятно):
gimme([5, 10, 14]) => 1
10 - это число, которое находится между 5 и 14, а индекс 10 во входном массиве равен 1.
Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.
Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.telegram from fr