Commit Graph

26 Commits

Author SHA1 Message Date
vaskes 20e719bebb [6kyu][algorithms][my-solution] Find The Parity Outlier solution
You are given an array (which will have a length of at least 3, but
could be very large) containing integers. The array is either entirely
comprised of odd integers or entirely comprised of even integers except
for a single integer N. Write a method that takes the array as an
argument and returns this "outlier" N.
2024-10-13 17:54:24 +03:00
vaskes c5a12704c3 [6kyu][algorithms] Find The Parity Outlier solution
You are given an array (which will have a length of at least 3, but
could be very large) containing integers. The array is either entirely
comprised of odd integers or entirely comprised of even integers except
for a single integer N. Write a method that takes the array as an
argument and returns this "outlier" N.
2024-10-13 17:00:52 +03:00
vaskes 076c7e90dc [setup] add script for quick create function with tests 2024-10-13 16:19:19 +03:00
vaskes ffa87ec3a3 [5kyu][functionl-programming][math] A Chain adding function
https://www.codewars.com/kata/539a0e4d85e3425cb0000a88/solutions/typescript

We want to create a function that will add numbers together when called
in succession.
2024-10-03 13:56:51 +03:00
vaskes aeb641e339 [6kyu][fundamentals][strings][array]
https://www.codewars.com/kata/54b42f9314d9229fd6000d9c/solutions/typescript

The goal of this exercise is to convert a string to a new string where
each character in the new string is "(" if that character appears only
once in the original string, or ")" if that character appears more than
once in the original string. Ignore capitalization when determining if a
character is a duplicate.
2024-10-03 13:45:15 +03:00
vaskes e9a72107ed [7kyu][fundamentals] Growth of a Population
https://www.codewars.com/kata/563b662a59afc2b5120000c6

n a small town the population is p0 = 1000 at the beginning of a year.
The population regularly increases by 2 percent per year and moreover 50
new inhabitants per year come to live in the town. How many years does
the town need to see its population greater than or equal to p = 1200
inhabitants?
2024-10-03 13:04:36 +03:00
vaskes 11c4e28710 [8kyu][array][fundamentals] conditions
https://www.codewars.com/kata/55f9b48403f6b87a7c0000bd

Your classmates asked you to copy some paperwork for them. You know that
there are 'n' classmates and the paperwork has 'm' pages.Your task is to
calculate how many blank pages do you need. If n < 0 or m < 0 return 0.
2024-10-03 13:00:35 +03:00
vaskes 3a964f61f9 [8kyu][array][fundamentals] sum array of numbers
https://www.codewars.com/kata/576b93db1129fcf2200001e6

Sum all the numbers of a given array ( cq. list ), except the highest
and the lowest element ( by value, not by index! ).The highest or lowest
element respectively is a single element at each edge, even if there are
more than one with the same value.Mind the input validation.
2024-10-03 12:57:45 +03:00
vaskes f0bff99aa4 [6kyu][string] towerBuilder
https://www.codewars.com/kata/576757b1df89ecf5bd00073b

Build a pyramid-shaped tower, as an array/list of strings, given a
positive integer number of floors. A tower block is represented with "*"
character.For example, a tower with 3 floors looks like this:
2024-10-03 12:55:37 +03:00
vaskes 3a1b17fb9f [solution] screening task 2024-09-24 00:08:35 +03:00
vaskes 6a7bf0c043 [solution] multiply fibonachi 2024-09-24 00:07:56 +03:00
vaskes eed95e70ae [solution] factorial for, factorial recursive 2024-09-23 12:37:45 +03:00
vaskes 5f09c9d96a [book] algorithm 2024-09-23 12:37:06 +03:00
vaskes 37da2c85ec [solution] insertion sort words add 2024-09-22 13:06:47 +03:00
vaskes 3f306706c8 [solution] insertion sort for string 2024-09-22 11:48:21 +03:00
vaskes 87b53d0974 [solution] check is posible to make triangle 2024-09-20 22:33:01 +03:00
vaskes fa078c0743 [solution] max length unick sub string my solution 2024-09-20 09:59:27 +03:00
vaskes df23819e72 [solution] fix sort mutate list, not return result 2024-09-20 00:02:46 +03:00
vaskes 4945a4128b [bestSolution] min max with Left Rigth 2024-09-19 23:37:10 +03:00
vaskes c6b5b0bf9e [solution] min max with Left Right 2024-09-19 23:27:50 +03:00
vaskes 56f7b520ac [bestSolution] search end string in another string my solution 2024-09-19 22:50:20 +03:00
vaskes 19a5845d20 search end string in another string my solution 2024-09-19 22:45:25 +03:00
vaskes 5e1cc1b0ef [algo] binarySearch 2023-06-27 21:58:23 +03:00
vaskes 8f886d1336 [tests] setup tests 2023-06-27 21:35:04 +03:00
vaskes 5f22e1115f [infra] creat ts library for collect snippets 2023-06-27 21:19:48 +03:00
vaskes 705883cbca [docs] init commit, add readme 2023-06-27 21:00:40 +03:00