Archive

Archive for the ‘Programación’ Category

026. Remove Duplicates from Sorted Array #leetcode #java #python3 #javascript #ruby #golang #scala

January 17, 2018 Leave a comment

Solutions:

Java Python Javascript Ruby Golang Scala

Tests:

[1,1,2]
[1,1,1,1,1,2,2,2,2,2]

Advertisements
Categories: Golang, Java, JavaScript, Python, ruby, Scala

024. Swap Nodes in Pairs #leetcode #java #python3 #javascript #ruby #golang #scala

January 16, 2018 Leave a comment

 

Solutions :

Java
Python
Javascript
Ruby
Golang
Scala

Tests:

[]
[1,2,3,4,5]
[2,2,3,3,4,4,5,6]

023. Merge k Sorted Lists #leetcode #java #python3 #javascript #ruby #golang #scala

January 15, 2018 Leave a comment

Problem description

Solutions:

Java
Python
Javascript
Ruby
Golang
Scala

Tests:

[]
[[1],[0]]
[[0,1,1,3,4],[0],[1]]
[[],[1]]

022. Generate Parentheses #leetcode #java #python3 #javascript #ruby #golang #scala

January 12, 2018 Leave a comment

021. Merge Two Sorted Lists #leetcode #java #python3 #javascript #ruby #golang #scala

January 11, 2018 Leave a comment

020. Valid Parentheses #leetcode #java #python3 #javascript #ruby #golang #scala

January 10, 2018 Leave a comment

Problem description

Solution Java

Solution Python

Solution Javascript

Solution Ruby

Solution Golang

Solution Scala

Tests:
“[”
“{}”
“{{}}”
“{{}[]}”
“((({}{}{}{}[][])))”

019. Remove Nth Node From End of List #leetcode #java #python3 #javascript #ruby #golang #scala

January 9, 2018 Leave a comment