Skip to content

Реализация различных задач для тренировки на php

Notifications You must be signed in to change notification settings

yulia633/tasks-for-php

Repository files navigation

Maintainability Test Coverage PHP CI

Решение задач

О коде

Реализация различных задач для тренировки на php


Установка

  • git clone
  • cd tasks-for-php
  • make install
  • make test

Содержание

Given an array of integers, find the largest pair sum in it. For example, the largest pair sum in [12, 34, 10, 6, 40] is 74

Check the balance of the brackets in the expression. Brackets can be round: "()", square: "[]", curly "{}" and angle: "<>"

Create reverse string function. The first function should apply a linear-recursive process, the second function is a linear-iterative.

Create factorial function. The first function should apply a linear-recursive process, the second function is a linear-iterative.

Find the sum from 1 to N. The first function should apply a linear-recursive process, the second function is a linear-iterative.

Write a function search key in the box from a book Grochem algorithms. The first function should apply a linear-recursive process, the second function is a linear-iterative.

Implement a function that takes a list as input and returns a new one consisting of elements that have the same parity as the first element of the input list.

Given two arrays, write a function to calculate their intersection. Each element in the result should appear as many times as it is displayed in both arrays. The result can be in any order.

About

Реализация различных задач для тренировки на php

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published