Homepage
Open in app
Sign inGet started

JEN-LI CHEN IN DATA SCIENCE

My homepage to record my thought processes for solving SQL and Algorithm questions

Go to the profile of Isabelle
Isabelle
Jun 21, 2021

Leetcode

39. Combination Sum

Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.

Read more…
Go to the profile of Isabelle
Isabelle
Jun 18, 2021

Leetcode

21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a sorted list. The list should be made by…

Read more…
Go to the profile of Isabelle
Isabelle
May 21, 2021

Leetcode

360. Sort Transformed Array

Given a sorted integer array nums and three integers a, b and c, apply a quadratic function of the form f(x) = ax2 + bx + c to each element nums[i] in the array, and return the array in a sorted order.

Read more…
Go to the profile of Isabelle
Isabelle
May 13, 2021

Leetcode

1196. How Many Apples Can You Put into the Basket

You have some apples, where arr[i] is the weight of the i-th apple. You also have a basket that can carry up to 5000 units of weight.

Read more…
Go to the profile of Isabelle
Isabelle
Apr 27, 2021

HackerRank Python

Capitalize!

You are asked to ensure that the first and last names of people begin with a capital letter in their passports. For example, alison heck should be capitalised correctly as Alison Heck.

Read more…
Go to the profile of Isabelle
Isabelle
Apr 23, 2021

HackerRank Python

Nested Lists

Given the names and grades for each student in a class of students N, store them in a nested list and print the name(s) of any student(s) having the second lowest grade.

Read more…
Go to the profile of Isabelle
Isabelle
Apr 22, 2021

Leetcode SQL

262. Trips and Users

Table: Trips

+-------------+----------+
| Column Name | Type |
+-------------+----------+
| Id | int |
| Client_Id | int |
| Driver_Id | int |
| City_Id | int |
| Status | enum |
|…
Read more…
Go to the profile of Isabelle
Isabelle
Apr 22, 2021

Write a function

An extra day is added to the calendar almost every four years as February 29, and the day is called a leap day. It corrects the calendar for the fact that our planet takes approximately 365.25 days to orbit the sun. A leap year contains a leap day.

Read more…
Go to the profile of Isabelle
Isabelle
Apr 20, 2021

ginortS

You are given a string S.
S contains alphanumeric characters only.

Your task is to sort the string S in the following manner:

  • All sorted lowercase letters are ahead of uppercase letters.
  • All sorted uppercase…
Read more…
Go to the profile of Isabelle
Isabelle
Apr 19, 2021

Iterables and Iterators

The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an iterator algebra making it possible to construct specialized tools succinctly and efficiently in pure Python.

Read more…
About JEN-LI CHEN IN DATA SCIENCELatest StoriesArchiveAbout MediumTermsPrivacy