Lab 07
Lab 07
CS‐F23
LAB‐07 Issue Date: March 17, 2025
Start Time: 11:45 AM
Total Marks: 30 Submission Time: 12:45 AM
Given a non-negative integer represented as a string num, and an integer k, remove k digits from the number so
that the resulting number is the smallest possible.
Example:
Input: "1432219", k = 3
Process:
Remove 4 → "132219"
Remove 3 → "12219"
Remove 2 → "1219"
Output: "1219"
You are given a valid boolean expression as a string. The expression follows these rules:
Return the boolean result (true or false) after evaluating the expression.
Example:
Input: expression = "&(t, !(f), t)"
Output: true
Explanation:
!(f) → true
&(t, true, t) → AND of (true, true, true) → true
Good Luck!
------------------------------------------------------
Note: You must complete all your tasks individually. Absolutely NO collaboration is allowed. Any case of
plagiarism/cheating would result in 0 marks in sessional activities.