Data Structures and Algorithms

[Leetcode] 206. Reverse Linked List (Python)

April 14 2021

Explanation 링크드 리스트 뒤집기는 기본적이고, 정말 많이 나오는 알고리즘중 하나입니다. 시간복잡도는 O(n)이며, 총 3개의 스텝으로 이루어집니다. 이미지와 함께하면 이해가 빠를겁니다. 출처

[Coderbyte] Tree Constructor (Python)

April 04 2021

Problem Statement TreeConstructor(strArr) take the array of strings stored in strArr, which will contain pairs of integers in the following format: (i1,i2), ...

[Leetcode] 20. Valid Parentheses (Python)

March 30 2021

Problem Statement Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.

[Other] Missing Number and Duplicates

October 14 2020

Table of Contents Q: Find a missing number and duplicates in a given array Find a missing number in a given array 1.1 Example 1.2 Code Implementation...

[Other] Set Bits of a Binary Tree (C)

September 07 2020

Table of Contents Q: Implement a function that counts the set bit of a binary tree in C. What is a Binary Tree? 1.1 Binary Search Tree Steps and Pseud...