Skip to content

cheoljoo/problemSolving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

year 2022

leetcode

rust-linux


virtualenv (numpy memory_profiler)

  • virtualenv a
  • source a/bin/activate
  • pip install numpy
  • pip install memory_profiler
  • pip install mkdocs

docstirngs

compile

tkinter

from tkinter import N
ModuleNotFoundError: No module named 'tkinter'
  • sudo apt-get install python3.10-tk

year 2019

no0001.pl

no0003.py

4 GALLERY

5

  • http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=540&sca=30a0
  • 5.cpp : success with 2 sample
    • but, it is timeout and not solved.
    • I do not know what do I choose when I have multiple index with the maximum cross lines.
    • 5r2.cpp : find the proper index among the index with the same cross.
      • 5.data / 5.data2 / 5.data3 is ok. But , data6 is not ok. case count is 400

6 : Joined Longest Increasing Subsequence

7 : Longest Increasing Sequence

8 : K-th Longest Increasing Sequence

  • https://algospot.com/judge/problem/read/KLIS
  • 8.cpp : based on 7.cpp
    • MAX*130 : memory limit exceed
    • MAX*120 : RTE (SIGSEGV: segmentation fault, probably incorrect memory access or stack overflow)
  • 8moreC.cpp : based on 8.cpp
    • MAX*125 : memory limit exceed
    • new version to reduce the memory usage : But the following message
      • RTE (SIGSEGV: segmentation fault, probably incorrect memory access or stack overflow)
  • 8cpp.cpp : based on 8moreC.cpp
    • this is almost cpp std. But, it takes a lot of memory.
    • RTE (SIGKILL: program was forcefully killed, probably memory limit exceeded)

9 : D Tree

10 : Elivator

  • http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=701&sca=4050
  • 10.cpp : I think that it is just get the mimimal using elivator count. But , I should add the function of elivator history.
  • 10r.cpp
  • 10ans.cpp
    • 10.data 2 1 3
    • 10.data2 4 5 4 2 1
    • 10.data3 5 5 4 2 1 3
    • Result
      • No.1 [Good] : 0.002
      • No.2 [Good] : 0.002
      • No.3 [Good] : 0.002
      • No.4 [Good] : 0.003
      • No.5 [Good] : 0.002
      • No.6 [RTE]
      • No.7 [Good] : 0.020
      • No.8 [Good] : 0.003
      • No.9 [Good] : 0.002
      • No.10 [Good] : 0.001
  • algorithm
    • store story(floor) and elivator from 0 to N-1
    • use DFS
    • restriction : - store the cost (count or depth) for each story (floor) - check visited

11 : 조세퍼스 순열

12 : 배낭 챙기기 1

\ 12r.cpp 12r1.cpp 12r2.cpp
type recursive stack stack
method DFS BFS DFS
real time 0m0.119s 0m1.352s 0m1.198s
stack max (case : 12.data3) 8397 5586
result success Time Limit Exceed(30) - 1704ms Memory Limit Exceed(30) - 74MB

13 : LG CodeJam 2019

\ 1.py 2.c 3.cpp 4.c 5.c 6big.cpp
type recursive
method DFS
result ok ok ok not proper answer partial ok partial ok
extreme NA NA NA NA not try timeout
real time within 2s within 2s within 2s within 2s fail fail
try more sample ok timeout
reason need sort of person's input maybe for statement to compare
result after more sample ok not try timeout (100s in sample 12) but it show right answer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages