row 2 (matrix[1]) becomes 0 because matrix[1][1] (item next to 5 in second row) is 0 and the last column becomes 0 because the last item in the column is 0.
Hey @arpan74,
I was going through CTCI chapter 16 - Moderate so thought I might as well contribute as I am doing them anyway.
Question:
Are the links dynamically generated or are they hardcoded? I am referring to the header and readme status links to "Read solution".
In other words, if I was to push a file explaining question 16.1, how would you want me to format the header? Leave the link as blank so you can update them later or are these mdx file fed into a system somewhere that generates dynamic webpages as the mdx files are pushed to this repo?
Hello! This is my first time using GitHub, so I apologize if this is comment is old news. I wanted to see if this particular solution for question 1.4 might be considered as another option. Thank you for creating this repo! I've been enjoying it.
You are given a string. Write a function that checks if the letters in the string can be rearranged to form a palindrome (or if the input is already a palindrome). You can ignore spaces in the string.
defpalindrome(s):
# Remove spacess=s.replace(" ","")
# Check if s is == the reversed sreturns==s[::-1]`