Skip to content

Instantly share code, notes, and snippets.

View gozzoo's full-sized avatar

Evgeni Milev gozzoo

  • Smartmedia
  • Sofia, Bulgaria
View GitHub Profile

Senior Java Developer

Responsibilities

  • Design and implement solutions meeting project requirements
  • Carrying out assigned projects, and being involved in specification with customers, proposing and discussing designs
  • Estimate scope and effort of individual tasks and projects
  • Evaluate and test new technologies and approaches
  • Mentor junior team members, foloww their progress, perform code reviews
  • Diagnose defects, troubleshooting and technical analyses of production issues

Software Developer .NET / C#

Responsibilities

  • Design and implement solutions meeting project requirements
  • Write clean, scalable code for the .NET platform using C# programming language
  • Develop, test and deploy applications and system according the specifications
  • Review, update and refactor the product code
  • Estimate software tasks
  • Diagnose defects, troubleshooting and technical analyses of production issues
import Foundation
let api = "https://jsonplaceholder.typicode.com/posts/1"
let url = URL(string: api)!
let task = URLSession.shared.dataTask(with: url) { data, urlResponse, error in
if let data = data, let json = String(data: data, encoding: .utf8) {
print(json)
}
}
task.resume()
import Foundation
let now = Date()
let tomorrow = now.addingTimeInterval(86400)
let range = now ... tomorrow
print(range.contains(now))
print(tomorrow)

Задача 1

да се напише функция която получава като праметър масив и връща масив съдържащ най дългата поредица от последователни числа

Пример:

0, 5, 1, 2, 3, 4, 5, 2, 8, 9, 10 -> 1, 2, 3, 4, 5

Задача 1. клониране на масив

да се разработи функция deepcopy която получава масив от елменти и връща друг масив който съдържа копия на елементите от оригиналния масив

Изисквания:

  • функцията да работи като copy.deepcopy()
  • елементите в масива може да бъдат от различен тип

Пример: