<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Optimisation on Samarthya</title><link>https://samarthya.me/tags/optimisation/</link><description>Recent content in Optimisation on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Tue, 12 May 2020 11:23:34 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/optimisation/index.xml" rel="self" type="application/rss+xml"/><item><title>GoLang: SmipleCipher v2.0</title><link>https://samarthya.me/posts/golang-smiplecipher-v2-0/</link><pubDate>Tue, 12 May 2020 11:23:34 +0000</pubDate><guid>https://samarthya.me/posts/golang-smiplecipher-v2-0/</guid><description>&lt;p&gt;So continuing from the last &lt;a href="https://samarthya.me/posts/golang-simplecipher/" &gt;blog&lt;/a&gt; where I wrote a crude version of SimpleCipher and was inclined on removing the duplicate code, here I am with the improved version.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Caesar cipher diagram: each letter is shifted three positions along the alphabet"&#10; width="300"&#10; height="127"&#10; src="https://samarthya.me/posts/golang-smiplecipher-v2-0/simplecipher.png"&#10; srcset="https://samarthya.me/posts/golang-smiplecipher-v2-0/simplecipher.png 800w, https://samarthya.me/posts/golang-smiplecipher-v2-0/simplecipher.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/golang-smiplecipher-v2-0/simplecipher.png"&gt;&lt;/figure&gt;&#10;&#10;&lt;h3 class="relative group"&gt;Handy links&#10; &lt;div id="handy-links" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#handy-links" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;[fmt&lt;/code&gt;](&lt;a href="https://golang.org/pkg/fmt/" target="_blank" rel="noreferrer"&gt;https://golang.org/pkg/fmt/&lt;/a&gt;) package&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;[strings](https://golang.org/pkg/strings/)&lt;/code&gt; package.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Defining &lt;code&gt;types&lt;/code&gt;&#10; &lt;div id="defining-types" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#defining-types" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;While I compiled and unit tested code the general feeling was what can be optimized.&lt;/p&gt;</description></item><item><title>Handshake: JS</title><link>https://samarthya.me/posts/handshake-js/</link><pubDate>Sat, 11 Jan 2020 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/handshake-js/</guid><description>&lt;h1 class="relative group"&gt;Secret Handshake&#10; &lt;div id="secret-handshake" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#secret-handshake" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h1&gt;&#10;&lt;p&gt;Objective was relatively simple.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A numeral will be provided as input.&lt;/li&gt;&#10;&lt;li&gt;Based on the binary equivalent, one needs to compute the secret handshake.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Rule for handshake.&lt;/p&gt;</description></item></channel></rss>