Dr. Joseph N. Fouadjosephnady.hashnode.dev·Apr 17, 2024Solving the 🏛Roman Numeral to Integer Conversion Problem in ⚡PythonHello everyone, 👋, let's delve into the world of problem-solving. Thank you for stopping by the channel. I will take you in my own journey to solve today's problem using python. this case was one of the tasks in ALX project 0x04-python-more_data_str...Discussproblem solving skills
Gulshan Kumarperfinsights.hashnode.dev·Apr 16, 2024Binary Number with Alternating BitsGiven a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. LeetCode Problem - 693 class Solution { // Method to check if the binary representation of a number has alternating b...DiscussJava SolutionJava
Gulshan Kumarperfinsights.hashnode.dev·Apr 16, 2024Minimum Remove to Make Valid ParenthesesGiven a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any positions ) so that the resulting parentheses string is valid and return any valid string. Formally, a paren...DiscussJava SolutionJava
Gulshan Kumarperfinsights.hashnode.dev·Apr 16, 2024Make The String GreatGiven a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where: 0 <= i <= s.length - 2 s[i] is a lower-case letter and s[i + 1] is the same letter but in upper-...DiscussJava SolutionJava
Sean Coughlinblog.seancoughlin.me·Apr 15, 2024Mastering the 3Sum Problem: A Guide for LeetCode and Coding InterviewsIntroduction to the 3Sum Problem The 3Sum (LeetCode 15) problem is a classic algorithm challenge often encountered in software engineering interviews, particularly at companies like Google, Facebook, and Amazon. The task is straightforward yet tricky...DiscussSWE Interview Preparationleetcode
Sean Coughlinblog.seancoughlin.me·Apr 15, 2024Mastering Binary Tree Level Order Traversal for LeetCode InterviewsIntroduction to the Problem Binary trees are a fundamental data structure in computer science, used in various applications ranging from data organization to decision processes. A common task in software engineering interviews, including platforms li...DiscussSWE Interview Preparationleetcode
Gulshan Kumarperfinsights.hashnode.dev·Apr 15, 2024Isomorphic StringsGiven two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of char...DiscussJava SolutionIsomorphic Strings
Catherine Chendev.cathzchen.com·Apr 14, 2024Coding Training: How to Improve Your Coding SkillsThere's a lot that goes into becoming a better programmer, so let's just tackle one way that helps improve your programming skills today: practice, practice, practice solving problems. 😤 Practice Makes Perfect Mastering any skill takes time, and co...Discusscoding
Umang Srivastavaoutlierchronicles.hashnode.dev·Apr 14, 20241137. N-th Tribonacci NumberIn this blog lets try and understand how we can solve the 1137. N-th Tribonacci Number code in python and golang. Problem Statement The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Giv...Discuss·2 likes·27 readsRecursionPython
Chetan Dattachetan77.hashnode.dev·Apr 13, 2024148. Sort Linked ListProblem Statement Given the head of a linked list, return the list after sorting it in ascending order. (link) Example 1: Input: head = [4,2,1,3] Output: [1,2,3,4] Example 2: Input: head = [-1,5,3,4,0] Output: [-1,0,3,4,5] Example 3: Input: head ...DiscussLeetcodelinked list