{"id":761,"date":"2025-12-04T23:50:45","date_gmt":"2025-12-04T23:50:45","guid":{"rendered":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/?p=761"},"modified":"2025-12-07T09:02:24","modified_gmt":"2025-12-07T09:02:24","slug":"java-data-structures-algorithms-sagun-shrestha","status":"publish","type":"post","link":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/","title":{"rendered":"Mastering Data Structures &#038; Algorithms in Java: My Journey"},"content":{"rendered":"<p data-start=\"493\" data-end=\"914\">Learning data structures and algorithms (DSA) in Java has been one of the most transformative experiences in my computer science education. While theory is important, applying it in practice made all the difference. I began with basic sorting algorithms like bubble sort, selection sort, and insertion sort, gradually moving to more advanced topics like merge sort, heaps, and balanced binary trees.<\/p>\n<p data-start=\"916\" data-end=\"1337\">Hands-on practice helped me understand how each algorithm works, its time complexity, and its practical applications. For example, implementing <strong data-start=\"1060\" data-end=\"1086\">binary trees and heaps<\/strong> taught me how data can be organized efficiently, which is crucial for software that handles large datasets. Writing Java programs for <strong data-start=\"1221\" data-end=\"1279\">hash tables, graph traversal, and searching algorithms<\/strong> also improved my logical thinking and debugging skills.<\/p>\n<p data-start=\"1339\" data-end=\"1640\">Beyond technical skills, this practice reinforced discipline and patience. Some problems required multiple approaches, extensive testing, and careful optimization. I also learned the importance of writing clean, maintainable code\u2014a habit that will benefit me in future software engineering projects.<\/p>\n<p data-start=\"1642\" data-end=\"1946\">Overall, mastering DSA in Java gave me the confidence to tackle complex coding challenges, prepare for technical interviews, and approach real-world software problems methodically. It\u2019s an ongoing journey, but the skills I\u2019m developing now will form the foundation of my career in software development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learning data structures and algorithms (DSA) in Java has been one of the most transformative experiences in my computer science education. While theory is important, applying it in practice made all the difference. I began with basic sorting algorithms like bubble sort, selection sort, and insertion sort, gradually moving to more advanced topics like merge [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[34,35,37,33,32,36],"class_list":["post-761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learning-journey","tag-algorithms","tag-coding-practice","tag-computer-science","tag-dsa","tag-java","tag-problem-solving"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %<\/title>\n<meta name=\"description\" content=\"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %\" \/>\n<meta property=\"og:description\" content=\"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\" \/>\n<meta property=\"og:site_name\" content=\"Sagun Shrestha | Portfolio\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-04T23:50:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-07T09:02:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Sagun Shrestha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sagun Shrestha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\"},\"author\":{\"name\":\"Sagun Shrestha\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c\"},\"headline\":\"Mastering Data Structures &#038; Algorithms in Java: My Journey\",\"datePublished\":\"2025-12-04T23:50:45+00:00\",\"dateModified\":\"2025-12-07T09:02:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\"},\"wordCount\":214,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c\"},\"image\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp\",\"keywords\":[\"algorithms\",\"coding practice\",\"computer science\",\"DSA\",\"Java\",\"problem solving\"],\"articleSection\":[\"Learning Journey\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\",\"url\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\",\"name\":\"Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %\",\"isPartOf\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp\",\"datePublished\":\"2025-12-04T23:50:45+00:00\",\"dateModified\":\"2025-12-07T09:02:24+00:00\",\"description\":\"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.\",\"breadcrumb\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage\",\"url\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp\",\"contentUrl\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp\",\"width\":1408,\"height\":768,\"caption\":\"Creating dynamic user interface animations\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering Data Structures &#038; Algorithms in Java: My Journey\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#website\",\"url\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/\",\"name\":\"Portfolio\",\"description\":\"Showcasing My Web &amp; Mobile Development Projects\",\"publisher\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c\",\"name\":\"Sagun Shrestha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/11\/profile.jpg\",\"contentUrl\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/11\/profile.jpg\",\"width\":1066,\"height\":1600,\"caption\":\"Sagun Shrestha\"},\"logo\":{\"@id\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\"],\"url\":\"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/author\/sagun-shrestha\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %","description":"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %","og_description":"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.","og_url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/","og_site_name":"Sagun Shrestha | Portfolio","article_published_time":"2025-12-04T23:50:45+00:00","article_modified_time":"2025-12-07T09:02:24+00:00","og_image":[{"width":1408,"height":768,"url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp","type":"image\/webp"}],"author":"Sagun Shrestha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sagun Shrestha","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#article","isPartOf":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/"},"author":{"name":"Sagun Shrestha","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c"},"headline":"Mastering Data Structures &#038; Algorithms in Java: My Journey","datePublished":"2025-12-04T23:50:45+00:00","dateModified":"2025-12-07T09:02:24+00:00","mainEntityOfPage":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/"},"wordCount":214,"commentCount":0,"publisher":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c"},"image":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage"},"thumbnailUrl":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp","keywords":["algorithms","coding practice","computer science","DSA","Java","problem solving"],"articleSection":["Learning Journey"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/","url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/","name":"Java Data Structures and Algorithms for Efficient Coding - Sagun Shrestha | Portfolio %","isPartOf":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage"},"image":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage"},"thumbnailUrl":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp","datePublished":"2025-12-04T23:50:45+00:00","dateModified":"2025-12-07T09:02:24+00:00","description":"Sagun Shrestha shares his journey mastering data structures and algorithms in Java, problem-solving and coding skills for real-world projects.","breadcrumb":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#primaryimage","url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp","contentUrl":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/12\/java-dsa.webp","width":1408,"height":768,"caption":"Creating dynamic user interface animations"},{"@type":"BreadcrumbList","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/2025\/12\/04\/java-data-structures-algorithms-sagun-shrestha\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/"},{"@type":"ListItem","position":2,"name":"Mastering Data Structures &#038; Algorithms in Java: My Journey"}]},{"@type":"WebSite","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#website","url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/","name":"Portfolio","description":"Showcasing My Web &amp; Mobile Development Projects","publisher":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/c8e67f500114213ed8d579b08529aa9c","name":"Sagun Shrestha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/image\/","url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/11\/profile.jpg","contentUrl":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-content\/uploads\/2025\/11\/profile.jpg","width":1066,"height":1600,"caption":"Sagun Shrestha"},"logo":{"@id":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio"],"url":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/author\/sagun-shrestha\/"}]}},"_links":{"self":[{"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/comments?post=761"}],"version-history":[{"count":1,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/posts\/761\/revisions\/762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/media\/785"}],"wp:attachment":[{"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/media?parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/categories?post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dgl223.sshrestha1.imgd.ca\/portfolio\/wp-json\/wp\/v2\/tags?post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}