Solution for part 1 and part 2 of day 3 on Advent of Code. If you have any questions, feel free to ask in the comments.
CPP solution for hackerrank problem Chocolate Game Description Laurel and Hardy have n piles of chocolates with each pile containing some number of chocolates. The piles are arranged from left to righ
Solution for hackerrank problem Mandragora Forest in Java. The evil forest is guarded by vicious mandragoras. Garnet and her pet must make a journey through. She starts with pet health point s and 0 e
Program to convert a binary search tree to doubly linked list with in order traversal. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted Circu
Spiral Print, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Print the elements of a matrix in spiral form Please check the main.cpp snippet for the s
Search Matrix, is a matrix related problem and in this post we will see how we can solve this challenge in C++ search an element in a matrix of n X n. every row and column is sorted in increasing ord
Boolean Matrix Optimised, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Given a boolean matrix mat M N of size M X N, modify it such that if a matrix
Boolean Matrix, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Given a boolean matrix mat M N of size M X N, modify it such that if a matrix cell mat
Tries Creation, is a Tries related problem and in this post we will see how we can solve this challenge in C++ Please check the main.cpp snippet for the solution. This solution originally posted at G
Zigzag String, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Zigzag StringBookmark Suggest Edit The string PAYPALISHIRING is written in a zigzag pat
Substring String, is a Strings related problem and in this post we will see how we can solve this challenge in C++ computer the LPS array if the characters match Please check the main.cpp snippet for
Roman To Number, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given a roman numeral, convert it to an integer. Input is guaranteed to be within the
Reverse Sentence, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given an input string, reverse the string word by word. Example Given s the sky is
Rabin Karp, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Rabin Karp algo for pattern matching worst case O nm when all the hash values are same as
Min Op For Palindrome, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Minimum Characters required to make a String PalindromicBookmark Suggest Edit P
Length Last Wrod, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given a string s consists of upper lower case alphabets and empty space characters ,
KMP, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Please check the main.cpp snippet for the solution. This solution originally posted at Github by
Count Say, is a Strings related problem and in this post we will see how we can solve this challenge in C++ The count and say sequence is the sequence of integers beginning as follows 1, 11, 21, 1211
Common Prefix, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Write a function to find the longest common prefix string amongst an array of strings.
Characters To Make Palindrome, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Minimum Characters required to make a String PalindromicBookmark Sugges
Recent comments on codingchallenge
n 0 list1 1,2,3,4,4,5,5,6 d sum 0 for i in range len list1 d list1 i list1.coun
Can you try to explain what is going on in the for loop? for let, val in cnt1.items
I found that solution very popular and helpful https www.youtube.com watch?v ZNkquA2
I found that solution is very popular and helpful https youtu.be U9iw aTuGV0
I get 519 on mine and 519 on yours
Have you found your error ?
candles.sort reverse True return candles.count candles 0
We can solve it without using join operator. I think it will help you. SELECT w.id,
Can you explain the if condition which is been used in python solution for sales mat
Hi, there. Thanks for your solution. Just don t get this part from finding the first