🌟Day - 76🌟 Hello Connection! This is day 76 of my 💯 days leetcode challenge Today's Problem 1️⃣ Problem :- Swap Nodes in Pairs Description :-Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i.e., only nodes themselves may be changed.) Example 1: Input: head = [1,2,3,4] Output: [2,1,4,3] #Leetcode #Leetcode100dayschallenge #C++ #skillswallah #Day76 #consistency #DSA #leetcode170+ #PW #Skilkswallah
Goutam Sharma’s Post
More Relevant Posts
-
🌟Day - 89🌟 Hello Connection! This is day 89 of my 💯 days Leetcode Challenge Today's Problem 1️⃣ Problem :- N th Magical Number Description :-A positive integer is magical if it is divisible by either a or b.Given the three integers n, a, and b, return the nth magical number. Since the answer may be very large, return it modulo 109 + 7. Example 1: Input: n = 1, a = 2, b = 3 Output: 2 Example 2: Input: n = 4, a = 2, b = 3 Output: 6 #LeetCode #Leetcode100dayschallenge #C++ #skillswallah #Day89 #consistency #DSA #leetcode190+ #PW #Skilkswallah
To view or add a comment, sign in
-
🌟Day - 68🌟 Hello Connection! This is day 68 of my 💯 days leetcode challenge Today's Problem 1️⃣ Problem :- Maximum Swap Description :-You are given an integer num. You can swap two digits at most once to get the maximum valued number.Return the maximum valued number you can get. Example 1: Input: num = 2736 Output: 7236 Explanation: Swap the number 2 and the number 7. #Leetcode #Leetcode100dayschallenge #C++ #skillswallah #Day68 #consistency #DSA #leetcode170+ #PW #Skilkswallah
To view or add a comment, sign in
-
🌟Day - 61🌟 Hello Connection! This is day 61 of my 💯 days leetcode challenge Today's Problem 1️⃣ Problem :- Permutations Description :-Given an array nums of distinct integers, return all the possible permutations.You can return the answer in any order. Example 1: Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] #Leetcode #Leetcode100dayschallenge #C++ #skillswallah #Day61 #consistency #DSA #leetcode160+ #PW #Skilkswallah
To view or add a comment, sign in
-
🌟Day - 57🌟 Hello Connection! This is day 57 of my 💯 days leetcode challenge Today's Problem 1️⃣ Problem :- Peak Index in a Mountain Array Description :-You are given an integer mountain array arr of length n where the values increase to a peak element and then decrease.Return the index of the peak element.Your task is to solve it in O(log(n)) time complexity. Example 1: Input: arr = [0,1,0] Output: 1 #Leetcode #Leetcode100dayschallenge #C++ #skillswallah #Day57 #consistency #DSA #leetcode150+ #PW #Skilkswallah
To view or add a comment, sign in
-
#100daysofcodingchallenge of solving problems. ✅Day -70/100 🔗 Solved problems on leetcode 🎉 Problem solved:1 1. Ransom Note (Q.383) 🔗 link:https://lnkd.in/gyeaxEKS GitHub link:https://lnkd.in/gpiSnMep cc: Anchal Sharma Ikshit .. #dsa #leetcode #100daysofcode #codehelp #geeksforgeeks #leetcodechallenge #leetcode #problemsolving #dsachallenge
To view or add a comment, sign in
-
#100daysofcodingchallenge of solving problems. ✅Day -87/100 🔗 Solved problems on leetcode 🎉 Problem solved:1 1. Unique Number of occurrences(Q.1207) 🔗 link:https://lnkd.in/gzD9TQpi GitHub link:https://lnkd.in/gpiSnMep cc: Anchal Sharma Ikshit .. #dsa #leetcode #100daysofcode #codehelp #geeksforgeeks #leetcodechallenge #leetcode #problemsolving #dsachallenge
To view or add a comment, sign in
-
#100daysofcodingchallenge of solving problems. ✅Day -77/100 🔗 Solved problems on leetcode 🎉 Problem solved:1 1. Maximal Square (Q.221) 🔗 link:https://lnkd.in/gUYteCtQ GitHub link:https://lnkd.in/gpiSnMep cc: Anchal Sharma Ikshit .. #dsa #leetcode #100daysofcode #codehelp #geeksforgeeks #leetcodechallenge #leetcode #problemsolving #dsachallenge
To view or add a comment, sign in
-
#100daysofcodingchallenge of solving problems. ✅Day -72/100 🔗 Solved problems on leetcode 🎉 Problem solved:1 1. Triangle(Q.120) 🔗 link:https://lnkd.in/gvMYC5WM GitHub link:https://lnkd.in/gpiSnMep cc: Anchal Sharma Ikshit .. #dsa #leetcode #100daysofcode #codehelp #geeksforgeeks #leetcodechallenge #leetcode #problemsolving #dsachallenge
To view or add a comment, sign in
-
🌟Day - 42🌟 Hello Connection! This is day 42 of my 100 days leetcode challenge Today's Problem ✅Problem :- Power of Two Description :- given an integer n return true if it is a power of two otherwise return false Example Input : n=1 Output : true Explanation. : 2^0 = 1 #Leetcode #Leetcode100dayschallenge #C++ #skillswallah #Day42 #consistency #DSA #leetcode140+ #PW #Skilkswallah
To view or add a comment, sign in
-
#100daysofcodingchallenge of solving problems. ✅Day -85/100 🔗 Solved problems on leetcode 🎉 Problem solved:1 1. Maximum Number of Vowels in a substring of given length(Q.1456) 🔗 link:https://lnkd.in/g63Jdc9A GitHub link:https://lnkd.in/gpiSnMep cc: Anchal Sharma Ikshit .. #dsa #leetcode #100daysofcode #codehelp #geeksforgeeks #leetcodechallenge #leetcode #problemsolving #dsachallenge
To view or add a comment, sign in