Author: <span>coderscart</span>

Problem:https://www.hackerrank.com/challenges/minimum-swaps-2/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=arrays Solution: Explanation: NOTE:You can also join our membership for clearning your doubts or for any personal learning for Python , C , Data Structure using C or Python. Link…

Problem Statement: https://www.hackerrank.com/challenges/sherlock-and-cost/problem Solution: Explanation: Note: You can also join our membership for clearning your doubts or for any personal learning for Python , C , Data Structure using C…

Dynamic Programming

Problem:https://www.hackerrank.com/challenges/two-strings/problem Given two strings, determine if they share a common substring. A substring may be as small as one character.For example, the words “a”, “and”, “art” share the common substring…

Problem: https://www.hackerrank.com/challenges/triangle-quest-2/problem Sample Code: Explanation:

Problem : https://www.hackerrank.com/challenges/python-quest-1/problem Sample Code: Explanation:

Problem: https://www.hackerrank.com/challenges/count-triplets-1/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=dictionaries-hashmaps Sample Code: Explanation:

Problem: https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/problem Problem description: You’re given the pointer to the head node of a linked list and a specific position. Counting backwards from the tail node of the linked list,…

Problem:https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem Sample Code: Explanation:

Problem: https://www.hackerrank.com/challenges/delete-a-node-from-a-linked-list/problem Problem Statement: You’re given the pointer to the head node of a linked list and the position of a node to delete. Delete the node at the given…

Problem: https://www.hackerrank.com/challenges/sock-merchant/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=warmup John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the…