From f68707c34769afcde873a30581b4dd53b7ff2f49 Mon Sep 17 00:00:00 2001 From: Yatheesan Chandreswaran Date: Sat, 6 Oct 2018 23:33:52 +0530 Subject: [PATCH 1/2] added linear search in tyescript --- .DS_Store | Bin 10244 -> 10244 bytes typescript-linear-search/.DS_Store | Bin 0 -> 6148 bytes typescript-linear-search/README.md | 3 +++ typescript-linear-search/exe-linear-search.js | 7 +++++++ typescript-linear-search/exe-linear-search.ts | 8 ++++++++ .../typescript-linear-search.js | 17 +++++++++++++++++ .../typescript-linear-search.ts | 13 +++++++++++++ 7 files changed, 48 insertions(+) create mode 100644 typescript-linear-search/.DS_Store create mode 100644 typescript-linear-search/README.md create mode 100644 typescript-linear-search/exe-linear-search.js create mode 100644 typescript-linear-search/exe-linear-search.ts create mode 100644 typescript-linear-search/typescript-linear-search.js create mode 100644 typescript-linear-search/typescript-linear-search.ts diff --git a/.DS_Store b/.DS_Store index d37db6a62c8cb8b61fad8eb3512eeb2760943dcf..87e4cddf6b4c4ab1622acb30f983fc52d99a6964 100644 GIT binary patch delta 360 zcmZn(XbG6$UDU^hRb;^a6%gUSCz_%?e9q;YaeFqAMUWBsI@9C$%g!&%ekgu_Sf!5dqKoXpn}0#F7l4A`WGTlm$TJ85lS@IO7E* zs;do6EOiu2Oblyv6spb54S;N8v)WotP7Xbj{Lo>rE(S(M2+be} zrD4<&AOr3jhGK?fh9ZVcpwCJsONz@(t`!zW_3Pxl!rX$l;(-&k^qc{97hUv>cEhg@g? delta 36 scmZn(XbG6$&nUeyU^hRb^yD}}gUSCz_%?e9q;YO63uoKRuJD%~0Oth^PXGV_ diff --git a/typescript-linear-search/.DS_Store b/typescript-linear-search/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 { + if (value === find){ + message = 'found value ' + find.toString() + ' in the collection at index of ' + collection.indexOf(find); + + } + }); + return message; + } +} From 592453ae27eb186eb45e0f715d8dafca38a10cab Mon Sep 17 00:00:00 2001 From: Yatheesan Chandreswaran Date: Sun, 7 Oct 2018 00:03:24 +0530 Subject: [PATCH 2/2] added linear search in typescript and updated --- .idea/workspace.xml | 409 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 410 insertions(+) create mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..ad54056 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,409 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +