[ya-day1] 6 1 B yandex solution

This commit is contained in:
2024-11-10 16:14:16 +03:00
parent adbb265d1b
commit 5c452053f5
2 changed files with 82 additions and 36 deletions
+5 -5
View File
@@ -51,16 +51,16 @@ describe("tiShortChoser", () => {
it("tiShortChoser 1, 1, 4, 6", () => {
expect(tiShortChoser(1, 1, 4, 6)).toEqual("2 1");
});
it("___ 4, 4, 4, 6", () => {
it("4, 4, 4, 6", () => {
expect(tiShortChoser(4, 4, 4, 6)).toEqual("5 1");
});
it("____ 8 9 5 9", () => {
it("8 9 5 9", () => {
expect(tiShortChoser(8, 9, 5, 9)).toEqual("10 1");
});
it("____ 1000 1 1000 1", () => {
expect(tiShortChoser(1000, 1, 1000, 1)).toEqual("2 1");
it("1000 1 1000 1", () => {
expect(tiShortChoser(1000, 1, 1000, 1)).toEqual("2 2");
});
it("____ 1000, 1, 1, 1000 ", () => {
it("1000, 1, 1, 1000 ", () => {
expect(tiShortChoser(1000, 1, 1, 1000)).toEqual("1001 1");
});
it("1, 0, 1, 0 ", () => {