Skip to content

Instantly share code, notes, and snippets.

View gozzoo's full-sized avatar

Evgeni Milev gozzoo

  • Smartmedia
  • Sofia, Bulgaria
View GitHub Profile

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

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

Изисквания:

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

Пример:

Задача 1

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

Пример:

0, 5, 1, 2, 3, 4, 5, 2, 8, 9, 10 -> 1, 2, 3, 4, 5
import Foundation
let now = Date()
let tomorrow = now.addingTimeInterval(86400)
let range = now ... tomorrow
print(range.contains(now))
print(tomorrow)
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()

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

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
class BitSet {
func getElements() -> [Int] {
var res = [Int]()
var sIdx = -1
var mask:UInt64 = 1
for var i in 0...size {
var bitPos = i % 64
if bitPos == 0 {
sIdx += 1
mask = 1
@gozzoo
gozzoo / binary-search.swift
Last active December 17, 2020 10:09
swift problems
func find(_ arr: [Int],_ num: Int) -> Bool {
var leftS = 0 , rightS = arr.count - 1
while leftS <= rightS {
var mid = (leftS + rightS) / 2
if arr[mid] == num {
return true
} else if arr[mid] < num {
leftS = mid + 1
} else {
rightS = mid - 1
  1. PID1, PID2 да са работят независимо един от друг

  2. watchdog

  3. записване на настройките на PID в EEPROM

  4. тест с трети датчик на темпратура. логика за управление

  5. preinfusion прост вариант - изключване на помпата