<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by sowmya kelam on Medium]]></title>
        <description><![CDATA[Stories by sowmya kelam on Medium]]></description>
        <link>https://medium.com/@sowmya2904?source=rss-3335eccd772d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by sowmya kelam on Medium</title>
            <link>https://medium.com/@sowmya2904?source=rss-3335eccd772d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:38:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sowmya2904/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Heap Data Structure]]></title>
            <link>https://medium.com/@sowmya2904/heap-data-structure-f8bcefe40d0c?source=rss-3335eccd772d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8bcefe40d0c</guid>
            <category><![CDATA[heap]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[sowmya kelam]]></dc:creator>
            <pubDate>Wed, 16 Aug 2023 17:18:21 GMT</pubDate>
            <atom:updated>2023-08-16T17:18:21.748Z</atom:updated>
            <content:encoded><![CDATA[<p>Heap is non linear data structure, there are two types of heap</p><p>minheap, maxheap</p><p>minheap : root is always less then children , root is minimum of all the elements present in the heap</p><p>maxheap : root is always greater than children , root is max of all the elements present in the heap</p><p>to create heap on n it takes o(n), to add or delete an element to min or max heap it is log(n)</p><p>how to use heap in golang we have a heap package in go and we need to modify heap interfaces method for customization</p><p>min heap in golang:</p><p>package main</p><p>import (<br> “container/heap”<br> “fmt”<br>)</p><p>type MinHeap []int</p><p>func (h MinHeap) Len() int { return len(h) }<br>func (h MinHeap) Less(i, j int) bool { return h[i] &lt; h[j] }<br>func (h MinHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }</p><p>func (h *MinHeap) Push(x interface{}) {<br> *h = append(*h, x.(int))<br>}</p><p>func (h *MinHeap) Pop() interface{} {<br> old := *h<br> n := len(old)<br> x := old[n-1]<br> *h = old[0 : n-1]<br> return x<br>}</p><p>func main() {<br> minHeap := &amp;MinHeap{4, 2, 7, 1, 9, 3}</p><p>heap.Init(minHeap) // Initialize the heap</p><p>fmt.Printf(“Minimum element: %d\n”, (*minHeap)[0]) // Print the minimum element</p><p>heap.Push(minHeap, 0) // Push a new element onto the heap</p><p>fmt.Printf(“Minimum element after pushing: %d\n”, (*minHeap)[0]) // Print the minimum element</p><p>popped := heap.Pop(minHeap) // Pop the minimum element<br> fmt.Printf(“Popped element: %d\n”, popped)<br>}</p><p>maxheap :</p><p>package main</p><p>import (<br> “container/heap”<br> “fmt”<br>)</p><p>type MaxHeap []int</p><p>func (h MaxHeap) Len() int { return len(h) }<br>func (h MaxHeap) Less(i, j int) bool { return h[i] &gt; h[j] }<br>func (h MaxHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }</p><p>func (h *MaxHeap) Push(x interface{}) {<br> *h = append(*h, x.(int))<br>}</p><p>func (h *MaxHeap) Pop() interface{} {<br> old := *h<br> n := len(old)<br> x := old[n-1]<br> *h = old[0 : n-1]<br> return x<br>}</p><p>func main() {<br> maxHeap := &amp;MaxHeap{4, 2, 7, 1, 9, 3}</p><p>heap.Init(maxHeap) // Initialize the heap</p><p>fmt.Printf(“Maximum element: %d\n”, (*maxHeap)[0]) // Print the maximum element</p><p>heap.Push(maxHeap, 10) // Push a new element onto the heap</p><p>fmt.Printf(“Maximum element after pushing: %d\n”, (*maxHeap)[0]) // Print the maximum element</p><p>popped := heap.Pop(maxHeap) // Pop the maximum element<br> fmt.Printf(“Popped element: %d\n”, popped)<br>}</p><p>you can define custom maxheap,minheap as []customstruct</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8bcefe40d0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First IPO investment Story]]></title>
            <link>https://medium.com/@sowmya2904/my-first-ipo-investment-story-a719da2d4638?source=rss-3335eccd772d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a719da2d4638</guid>
            <dc:creator><![CDATA[sowmya kelam]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 09:50:24 GMT</pubDate>
            <atom:updated>2022-07-22T06:05:52.403Z</atom:updated>
            <content:encoded><![CDATA[<p>My First IPO investment Story</p><p>When I got my first salary I asked my friends how they are managing money some said they are repaying their loans , shopping ,learning new skills , travelling, Gym and some said they are investing in MF , SIP and Stocks (Fancy terms never heard before ) I never had any loan on my head , So after all my expenses I used to send money to my mom like a decent a child to impress her that I’m not wasting money.</p><p>Somehow I discussed with my friend and created a demat account now that I have a demat account and I see some well known companies and less known companies I invested like 20k and lost most of it by choosing wrong stocks I’m scared about loosing more money withdrew the money never looked at those stocks again .</p><p>IPO — initial public offering</p><p>When a company plans to expand business or existing investors wants to liquidate their shares they come out with ipo. Some percent of ipo is available for retailers (us) when a given ipo is over subscribed there will be a lucky draw on picking the allotment now a days every ipo is getting oversubscribed and why not take chance or check our luck to subscribe , so how do we choose to subscribe to an IPO I generally follow the 5-p model rule</p><ol><li>Promoters :owners of the given IPO research about the previous achievements of owners history and their values</li></ol><p>2 . Products :The products that company worked on past or planning in future</p><p>3. Performance: Performance of the company in past years you can refer to DRHP ,RHP sheet will be available on SEBI website for all the companies</p><p>4.Peer performers :we should also look upon the competitors of the given company how well they are performing</p><p>5.Prospects: Strengths of this particular company</p><p>for example</p><p>Paytm : P1- Vijay Shekhar Sharma,P2-upi payments ,fast-tag,demat,tickets ..etc p3-Was in losses for past 3 years p4-phonepe,gpay bharat pe p5 first ever upi payment gateway</p><p>Investing on stocks requires lots of research because we have like 1000&#39;s of options and cannot predict the volatility of these stocks without a proper day to day knowledge but where as an ipo is little easy in comparison you invest with proper knowledge at once and for long time.</p><p>In my opinion beginners should choose IPO over stocks and wait for long term instead of selling them immediately</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a719da2d4638" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>