Problem
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
Examples
1 | Input: 1->2->3->3->4->4->5 |
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we could create.
1 | Examples: |
1 | from combinatorial_search import Backtracking |
1 | from combinatorial_search import Backtracking |
Consider a rat placed at (0, 0) in a square matrix m[][] of order n and has to reach the destination at (n-1, n-1). Your task is to complete the function which returns a sorted array of strings denoting all the possible directions which the rat can take to reach the destination at (n-1, n-1). The directions in which the rat can move are ‘U’(up), ‘D’(down), ‘L’ (left), ‘R’ (right).
Base_URL:
Parameters:
open_time:
(day_of_the_week - 1) 24 60 + minute_of_the_day, where day_of_the_week starts from Monday
e.g.
Given two strings str1 and str2 and below operations that can performed on str1. Find minimum number of edits (operations) required to convert ‘str1’ into ‘str2’.
All of the above operations are of equal cost.
1 | Input: str1 = "geek", str2 = "gesek" |