Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				That stupid thing looks like a homework solution for a truly dumb question. Probably how to handle realllllly large numbers using linked lists (for some bizzare reason).
 - 
				
				@Spacecase94 Ever heard about big decimal?
use that. never reinvent the circle. As a triangle.... - 
				
				@magicMirror so upon googling the big decimal class I’m confused how I could use that to add the integer values of 2 separate linked lists in reversed order and process them simultaneously and return a 3rd linked list with the sum of the reversed nodes in the 2 linked lists
 - 
				
				@Spacecase94 What are they teaching you there? My suggestion: find an uzi, or better yet, an mk47 with a big magazine, and go to to town...
Or maybe - write a linked list to BigDecimal method, and then a BigDecimal to linked list method, and then refactor that stupidass method in 1 line:
return ToList(ToDecimal(lista)+ToDecimal(listb)) - 
				
				@magicMirror it’s leetcode basically algorithm practice for technical interview questions. I quit playing video games and now algorithms are my new addiction
 



Solving leetcode problems for fun, as I’m highly interested in algorithm problems....and I go to the area where the discussion is, and this spaghetti is the first thing I see 😱
random