Skip to content

Conversation

@kyawsawshein
Copy link

Task 01
Solution : Using groupby to group the element of string with key and generator value and then char add sum the value
Taken time : 20 minute

Task 02
Solution : Using the thread Lock the control the thread lock and release, after release other thread will start
Taken time : 20 minutes

Task 03
Solution : Get the file path list from the filepath file and get the parent path
create the _scan_file function to read and count lines and words in the file
execute using the ThreadPoolExecutor to execute the _scan_file
Taken time : 2 hr

Task 03
Solution : Select subquery using WITH for the scope and amount_thb to temp scope_pledges WITH create object table
and then select the row and count from scope_pledges with window functions to temp ranked_pledges
after select scope and p90_thb of ceil(0.9 * n) and order the global first
Taken time: 2hr

AI Tool : ChatGPT

@kengggg
Copy link
Member

kengggg commented Jun 25, 2025

Thank you @kyawsawshein for your PR submission. Would you mind including SOLUTIONS.md or describe your PR description as mentioned in the README please? It would be helpful for us to more about your approach and why.

Expecting format

## Solution notes

### Task 01 – Run‑Length Encoder
- Language: Go
- Approach: [EXPLAIN YOUR ALGORITHM]
- Why: [TRADE-OFFS CONSIDERED]
- Time spent: ~12 min
- AI tools used: [IF ANY]

### Task 02 – Fix‑the‑Bug
- Language: Python
- Approach: [EXPLAIN THE FIX]
- Why: [WHY THIS SOLUTION]
- Time spent: ~8 min

[... continue for each task completed]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants