PEC-CSS/Open-Source

Linked List to Integer

ultimatecoder2 opened this issue · 4 comments

Given an array of binary number, you need to store it in a linked list, with each element of array being a node of link list.
Now this linkedlist represents a binary number. You need to return the number in base 10.

Sample TestCase 1

Input: [1,0,0]
Output: 4

Sample TestCase2

Input: [1,0,1]
Output: 5

Can you please assign me this issue. I want to work on it.

@ultimatecoder2 I have raised a PR for this issue.Please check

@Deeksharora Can you please solve it in any other programming language. (any language except java will work)

Please contact me, I want to work on it