PEC-CSS / Open-Source

Official ACM CSS PEC repository for resources and all things Open source
86 stars 132 forks source link

Linked List to Integer #362

Closed ultimatecoder2 closed 3 years ago

ultimatecoder2 commented 3 years ago

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

Deeksharora commented 3 years ago

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

douly20 commented 3 years ago

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

ultimatecoder2 commented 3 years ago

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

nilnguyenkl commented 3 years ago

Please contact me, I want to work on it